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

Parse declaration line to find assigned variables only.

$
0
0
Is there a possibility with just a single regular exp<b></b>ression pattern to retrieve only $sEnd and $sStart?

Thanks for your time.
[ autoit ]      
#include <Array.au3> Local Const $sData = "$sEnd = BinaryToString('0x1010101010', $vVar), $sStart = BinaryToString('0x0101010101' & $sString = 'Example')" #cs     How would I achieve just returning the variables that are being assign i.e. $sEnd and $sStart? #ce Local $aArray = StringRegExp('$iVariableCount, ' & $sData, '(\$\w+)\h*=?', 3) $aArray[0] = UBound($aArray) - 1 _ArrayDisplay($aArray)
Edit: Also certain users on here can confirm that I have been learning and not just posting at every available opportunity when I get stuck.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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