Jump to content

string search


Recommended Posts

Hi, I am trying to do the following

<------- BLOCK OF TEXT ---------->

somewhere in the middle of the text there is a var VARIABLE = "somenumber";

<------- BLOCK OF TEXT ---------->

I need to find a way to get the value of the VARIABLE.

Help me please

Link to comment
Share on other sites

#include <String.au3>

$BlockofText = 'somewhere in the middle of the text there is a var VARIABLE = "somenumber" with more text after maybe'
$aStringBetween = _StringBetween($BlockofText,'VARIABLE = "','"')
If Not @error Then
MsgBox(0,0,$aStringBetween[0])
EndIf

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...