Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
regex doesn't work: my error or bug?
#2
It seems it is a bug or feature in the (older) library PCRE version that QM uses. I tested with current PCRE version and it works well.
Workaround 1: use + instead of *
Workaround 2: don't use (?<=')

Also, in you code the submatch argument is 2. Must be 0 or 1.

Macro Macro2980
Code:
Copy      Help
str userNamePattern username risultato
username="= 'testname'"
userNamePattern = "'(.*?)'"
int i=findrx(username userNamePattern 0 0 risultato 1)
out i
out risultato


Messages In This Thread
regex doesn't work: my error or bug? - by zandar - 03-01-2018, 08:02 PM
RE: regex doesn't work: my error or bug? - by Gintaras - 03-02-2018, 06:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)