Re: [QGIS-Developer] Problem with LIKE/ILIKE expressions and line breaks

2022-09-07 Thread Andrea Giudiceandrea via QGIS-Developer

Hi Felix,
I can confim the issue is a regression, as the expression works 
correctly with QGIS 3.20.3 and previous versions, while it doesn't since 
QGIS 3.22.0.
It seems to me this issue is a side effect of the "migration" from 
QRegExp to QRegularExpression.


I've submitted the PR https://github.com/qgis/QGIS/pull/50124 which 
fixes this issue, according to my tests.


Regards.

Andrea Giudiceandrea

Il 06/09/2022 14:52, flatoram via QGIS-Developer ha scritto:

Hi,

I have some problems with the expression editor for styling and other 
expressions.
I found a related issue to this problem on github: 
https://github.com/qgis/QGIS/issues/47957

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] Problem with LIKE/ILIKE expressions and line breaks

2022-09-06 Thread flatoram via QGIS-Developer
Hi,

I have some problems with the expression editor for styling and other
expressions.
I found a related issue to this problem on github:
https://github.com/qgis/QGIS/issues/47957

A simple LIKE/ILIKE expression with line break values no more works in
3.22.5/3.22.10 LTR and 3.26.2.

In QGIS Version 3.16.5 it worked fine.

'Herbert\nCarl' ILIKE '%carl%' returns 0, not 1.

A temporary workaround for me is using "replace" + LIKE  or "regexp_match"
without LIKE.

Is the issue known?

Kind regards,
Felix
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer