03-01-2018, 08:02 PM
Hi Gintaras,
this regex (PCRE flavour) finds the substring between two single quotes:
It works well when tested in RegexBuddy 4,
![[Image: htdvd4.png]](http://i66.tinypic.com/htdvd4.png)
in https://regexr.com and https://www.regexpal.com:
![[Image: 9jls1h.png]](http://i63.tinypic.com/9jls1h.png)
but if fails in QM:
![[Image: j5i0wl.png]](http://i63.tinypic.com/j5i0wl.png)
is it my fault?
Again thank you for your exceptional support.
this regex (PCRE flavour) finds the substring between two single quotes:
It works well when tested in RegexBuddy 4,
![[Image: htdvd4.png]](http://i66.tinypic.com/htdvd4.png)
in https://regexr.com and https://www.regexpal.com:
![[Image: 2uglztg.png]](http://i65.tinypic.com/2uglztg.png)
![[Image: 9jls1h.png]](http://i63.tinypic.com/9jls1h.png)
but if fails in QM:
str userNamePattern username risultato
username="WHERE nomepass = 'testname'"
userNamePattern = "(?<=')(.*?)(?=')"
if(findrx(username userNamePattern 0 0 risultato 2)>=0)
out risultato
else
mes "match for ''(?<=')(.*?)(?=')'' not found" "Error"
![[Image: j5i0wl.png]](http://i63.tinypic.com/j5i0wl.png)
is it my fault?
Again thank you for your exceptional support.