Davidyese Posted July 7, 2025 Posted July 7, 2025 Hi all, I want to grab the first group of numbers in my code : #NoTrayIcon $sValue = '/IBM.exe 251467 502820A0347C9CC0E6AD86EC33B6E0FB' $bValueSIZE = StringRegExpReplace($sValue, '(?s).*?exe([^\h+\d+]+).*$', "$1") MsgBox(64, "", $bValueSIZE ) ;Request >>> I Want $bValueSIZE = 251467 My request :>>> I Want $bValueSIZE = 251467 in my example so stringbetween exe and 2nd empty space Thanks in advance
Developers Solution Jos Posted July 7, 2025 Developers Solution Posted July 7, 2025 Something like this maybe?: $bValueSIZE = StringRegExpReplace($sValue, '(?m).*?exe\s*(\d+).*$', "$1") Davidyese 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Davidyese Posted July 7, 2025 Author Posted July 7, 2025 1 hour ago, Jos said: Something like this maybe?: $bValueSIZE = StringRegExpReplace($sValue, '(?m).*?exe\s*(\d+).*$', "$1") Thanks a lot, it's working now
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