09-17-2012, 02:58 PM
Macro Macro1841
str s=
;welcome the user is here
;nothing has to be matched from this
;welcome i like it here
str m
if(findrx(s "(?s).*^(welcome(?-s).+here)$" 0 8 m 1)<0) end "not found"
;if(findrx(s "(?:^.*[])*^(welcome.+here)$" 0 8 m 1)<0) end "not found" ;;this also works, don't know which is better
out m
;the * is greedy, ie matches as much as possible, therefore the rest will find the last match