Hi, 

In QGIS 2.12 and master I have very strange behavior of the regexp_match
function (probably also regexp_replace and regexp_substr). 

I have to double-escape special regexp-signs. 

Taking the example from the help-text: 

regexp_match('QGIS ROCKS','\sROCKS') --> doesn't work 

but 

regexp_match('QGIS ROCKS','\\sROCKS') 

works. 

Isn't this a bug? If it isn't, then it is at least a very strange
behaviour of QGIS and the help text would then be wrong. 

Thank you for having a look at this, 

Andreas

  
_______________________________________________
Qgis-developer mailing list
[email protected]
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to