[Qgis-developer] Strange behaviour of regexp_match expression functions

Neumann, Andreas a.neumann at carto.net
Thu Feb 18 06:04:48 PST 2016


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

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160218/bc13fe05/attachment.html>


More information about the Qgis-developer mailing list