Chromed Posted September 24, 2016 Posted September 24, 2016 If I wanted to repeatedly check only the last line from the results of a WinGetText to trigger a word match via StringRegExp what would be the code/pattern for that?
mikell Posted September 24, 2016 Posted September 24, 2016 You might use something like this $lastline = StringRegExpReplace($my_text, '(?ms).*^(\N+)\s*', "$1") and then make the search in $lastline But this expression could also be slightly modified to include the search and bring the result directly
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