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

stringregexp replace leading spaces of every line from edit control

$
0
0

hello world..

 

i am trying to remove the leading spaces for every line in an edit control...

 

i was going to cycle through each line using _GuilCtrlEdit_GetLine and remove the spaces using stringstripws

 

but i think this can probably done faster using stringregexp

 

i found this.. http://www.autoitscript.com/forum/topic/157998-stringregexp-expression-help/but it doesnt seem to work when i replace the - with a $

 

its probably because the $ isnt being read as a literal character so i tried using chr(36) - still didnt work.

 

any ideas?

 

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>