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

Parsing out the strings between " " and ' '

$
0
0

I want to parse out the actual text the is in RED color from au3 script and place it in an array, the strings between " and ' symbols

SAMPLE INPUT TEXT: 

#include "StaticConstants.au3" ;yes this is red text, but it has to be ignored as it is path to include file #include <WindowsConstants.au3> $TEXT = " yo yo 'yo' 'yo'yo 'yo' yo' " $fnScript = 'Auto Updater; (example script);' ;full script name $pScript = StringSplit(@ScriptName, '.') $dirMonter = @AppDataDir & '\monter.FM' ;directory for monter.FM's scripts $btnIni = GUICtrlCreateButton('View ' & $script & '.&ini', 4, 164, 115, 25) $btnFilUpd = GUICtrlCreateButton('View ' & $script & '.&upd', 126, 164, 119, 25) $YO = "hey'" & @TAB & '' & "" & '"' & "'world." ; tough one

OUTPUT ARRAY:

$array[0]  => 8 $array[1]  => "yo yo 'yo 'yo'yo 'yo' yo" $array[2]  => 'Auto Updater; (example script);' $array[3]  => '.' $array[4]  => '\monter.FM' $array[5]  => 'View ' $array[6]  => '.&ini' $array[7]  => 'View ' $array[8]  => '.&upd' $array[9]  => $array[10] => "hey'" $array[11] => '' $array[12] => "" $array[13] => '"' $array[14] => "'world."

How this can be achieved, would be glad if anyone provide me with actual  solution :)


Viewing all articles
Browse latest Browse all 12506

Trending Articles



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