Re: [Qgis-developer] BUG? strpos("area",'.') doesn't work

2016-11-07 Thread Elstermann, Mike
THX to all, that is it. Tipp in help +1! :-) mikeE. Von: Qgis-developer [mailto:qgis-developer-boun...@lists.osgeo.org] Im Auftrag von Mathieu Pellerin Gesendet: Montag, 7. November 2016 12:26 An: Matthias Kuhn Cc: qgis-developer Betreff: Re: [Qgis-developer] BUG? strpos("area",'.

Re: [Qgis-developer] BUG? strpos("area",'.') doesn't work

2016-11-07 Thread Mathieu Pellerin
Or we could upgrade regex_match() to return an offset instead of a binary false / true. On Nov 7, 2016 7:17 PM, "Matthias Kuhn" wrote: I haven't found any existing functionality. regexp_pos? On 11/07/2016 01:12 PM, Mathieu Pellerin wrote: > I ll take care of this over the

Re: [Qgis-developer] BUG? strpos("area",'.') doesn't work

2016-11-07 Thread Matthias Kuhn
I haven't found any existing functionality. regexp_pos? On 11/07/2016 01:12 PM, Mathieu Pellerin wrote: > I ll take care of this over the weekend. What should the regexp function > be called? > > > On Nov 7, 2016 7:10 PM, "Mathieu Pellerin" >

Re: [Qgis-developer] BUG? strpos("area",'.') doesn't work

2016-11-07 Thread Mathieu Pellerin
You read my mind. Big +1 from me. On Nov 7, 2016 6:40 PM, "Matthias Kuhn" wrote: > I wonder if we should change this for QGIS 3.0 and use QString::indexOf > instead, while providing dedicated regexp functions. > > What do you think, Mathieu? > > Matthias > > On 11/07/2016

Re: [Qgis-developer] BUG? strpos("area",'.') doesn't work

2016-11-07 Thread Matthias Kuhn
I wonder if we should change this for QGIS 3.0 and use QString::indexOf instead, while providing dedicated regexp functions. What do you think, Mathieu? Matthias On 11/07/2016 12:26 PM, Mathieu Pellerin wrote: > We should indicate in the function help that strpos is regexp based. > > > On Nov

Re: [Qgis-developer] BUG? strpos("area",'.') doesn't work

2016-11-07 Thread Mathieu Pellerin
We should indicate in the function help that strpos is regexp based. On Nov 7, 2016 6:23 PM, "Matthias Kuhn" wrote: > Hi, > > strpos is based on regexp, a '.' matches any character. > To let the engine treat a . as such you need to prefix it with a > double-backslash. > >

Re: [Qgis-developer] BUG? strpos("area",'.') doesn't work

2016-11-07 Thread Matthias Kuhn
Hi, strpos is based on regexp, a '.' matches any character. To let the engine treat a . as such you need to prefix it with a double-backslash. strpos(to_string("area"), '\\.') Regards Matthias On 11/07/2016 12:07 PM, Elstermann, Mike wrote: > Hi, > > > > “area” is a double-field with

[Qgis-developer] BUG? strpos("area",'.') doesn't work

2016-11-07 Thread Elstermann, Mike
Hi, "area" is a double-field with values e. g. 213.1234, 43215.3456, ... strpos("area",'.') gives only value 1 return :-( strpos(to_string("area"),'.') gives only value 1 return :-( This error exits only by '.', other search-strings e. g. '12', '1', ... work fine Our workarround