Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Findrx (greedy or back-reference?) problem
#1
Hello,

Been reading here and qm help but seems I just can't get some aspects of regular expression syntax.To simplify what I want to do, suppose:

str Sample="abcdefghiklbwxyz"

There are two "b" above. I want to find a match that starts with "b", ends with "yz" but has no "f" in the middle (so the commands below give "11" not "1").

int Look=findrx(Sample "(?=b).+(?!f)(?=yz)")
out Look


Many thanks in advance!


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)