<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p>In QGIS 2.12 and master I have very strange behavior of the regexp_match function (probably also regexp_replace and regexp_substr).</p>
<p>I have to double-escape special regexp-signs.</p>
<p>Taking the example from the help-text:</p>
<p><br />regexp_match('QGIS ROCKS','\sROCKS') --> doesn't work</p>
<p>but</p>
<p><br />regexp_match('QGIS ROCKS','\\sROCKS')</p>
<p>works.</p>
<p>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.</p>
<p>Thank you for having a look at this,</p>
<p>Andreas</p>
<div> </div>
</body></html>