Chromed Posted September 24, 2016 Share 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? Link to comment Share on other sites More sharing options...
mikell Posted September 24, 2016 Share 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 Link to comment Share on other sites More sharing options...
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