doestergaard Posted November 18, 2015 Posted November 18, 2015 (edited) I'm not good at doing regular expressions, as they seem complicated to understand. I have found out how to filter out digits and characters, which is simple enough. However, I need a friendly soul to help me get this:What I want, is only the number, and the % sign inside of the brackets [ ]I will appreciate any help i get. Thanks in advance! Edited November 18, 2015 by doestergaard
ahmet Posted November 18, 2015 Posted November 18, 2015 (edited) Try with _StringBetween(). Edited November 18, 2015 by ahmet
doestergaard Posted November 18, 2015 Author Posted November 18, 2015 Thanks for your reply. I actually find out that i could use it like:While 1 If StringInStr($sOutput, "%") > 0 Then GUICtrlSetData($oProgress, StringRegExpReplace($sOutput, "\D", "")) EndIf WEnd Then i can get the progress numbers, and use StringFormat("%u%%", $sOutput) to set the % sign.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now