Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

StringRegExp Help

$
0
0
hello =)

i am trying to get all instances of the following:

the number of "-" changes

Quote

;<------- begin Word or Phrase ------- >

then I am trying to find all the matches for the same Word or Phrase that fall under this sequence

Quote

|Word or Phrase: blah blah.|

trying to get the blah blah

here is what i have so far...

[ autoit ]         
$data = FileRead($file) $names = StringRegExp($data, ";<-{x,5}begin", 1) debug($names) for $x = 1 to UBound($names) $descriptions = StringRegExp($data, "|" & $names[$x] & ".|", 1) Next Func Debug($variable1 = "", $variable2 = "", $variable3 = "") If IsArray($variable1) Then _ArrayDisplay($variable1) Else If $variable2 <> "" Then $variable1 &= @CRLF & $variable2 EndIf If $variable3 <> "" Then $variable1 &= @CRLF & $variable3 EndIf ClipPut($variable1) MsgBox(0, "Debug", $variable1) EndIf EndFunc ;==>Debug

thanks in advance!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>