Skip to content

Question about Regex syntax in the Execute SQL find-replace panel #1625

@SilvioGrosso

Description

@SilvioGrosso

What is your question

Hello everyone,

I am currently testing the regular expressions pertaining to the Find and replace panel in the Execute SQL tab.
Most of them work fine but I am having troubles with the concatenation regex syntax.
I have just dowloaded today's build on Windows 10 (64 bit).

In short:
Whenever I concatenate two or more words together into the Browse Data filter everything works fine.
For instance:
/apple|pear/ --gives, as output in the filter column, both apple and pear.

On the contrary the same syntax does not yield any result in the Execute SQL tab.
IMHO, It looks fishy that the same syntax is different from the 2 tabs (Browse filter vs Execute SQL).
At first, I have suspected it was something related to the QT regex implementation but according to its documentation (http://doc.qt.io/archives/qt-4.8/qregexp.html) this | concatenation should work fine.

With Notepad++, Atom text editor and Sublime 3 everything is fine (apple|pear works OK).

Can someone shed some light on the correct syntax and possibly point to the right documentation to delve into?

Thanks a lot in advance for any hint!

See this screenshot:

regex_concatenate png

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions