8 Mar
2005
8 Mar
'05
3:27 a.m.
John Maddock wrote: thanks for your reply. Now it's a bit clear for me. s.match( /^abc/ ) -> regex_match(s,regex("^abc"), match_default| match_single_line) s.match( /^abc/m ) -> regex_match(s,regex("^abc"), match_default) s.match( /^abc/i ) -> regex_match(s,regex("^abc"), icase)
First off remember that regex_match doesn't *search*, it succeeds only if the whole of the expression matches the whole of the text, so you really need to be using regex_search.
global is of course for search / replace, my mistake sorry
regex_match(string, regex("^abc"), match_default) regex_match(string, regex("^abc"), match_default | icase) // <- is it correct?
both aren't correct (need match_single_line)