Sign in to follow this  
Followers 0
tsolrm

string search

3 posts in this topic

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

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0