How do I have to adjust a Regex search such that it just finds "bc" in the first line?
According to Regex web test pages( https://regex101.com/ , https://regexr.com/)
the regex expression "\A.*bc" should find "bc" in the first line - and ignore bc in the second line:
In Jmp with
Regex(
"abcdef
nghibcjk",
"\A.*bc"
);I get the result
... which corresponds to Regex with additional option /s (singleline):
How can I disable the singleline option?
I just found options for
.. .and for the greedy option which can be disabled by using .*? instead of .*.
Thanks, @jthi
I hoped the answer would be different. Interesting ...
Hm, here is the wish to fix it:
I don't think JMP's Regex() function supports any (general) regex flags outside of IGNORECAS (I think g, i, m and s are the most useful flags (Advanced searching with flags (mozilla.org)). I have made wish list item regarding global search, though it was hastily done and was just for Regex Match Add flag to Regex Match() to find all non-overlapping occurances of pattern . Luckily these are fairly easy to workaround most of the time.
Thanks, @jthi
I hoped the answer would be different. Interesting ...
Hm, here is the wish to fix it: