Feature #4374
closed
Add support for PCRE regex queries / library (was: Regex fulltext with negative lookahead)
Added by Dirk Diggler almost 8 years ago.
Updated almost 8 years ago.
Description
Hello,
what i wanted is to search for "AAA", but also exclude "BBB".
Without fullext it is working with [^BBB]AAA (thank you mpmc from IRC).
But we discovered this is not working in fulltext.
Can you please fix that?
Thank you, DocMAX.
Files
- Subject changed from Regex fulltext with negative lookahead to Add support for PCRE regex queries / library (was: Regex fulltext with negative lookahead)
The match is wrong. [^ABC] means "match any character except characters 'A' 'B' 'C'".
- Target version set to 4.4
- Tracker changed from Bug to Feature
I studied the differences POSIX ERE and PCRE.
This feature would be a killer-feature!
Can wait for it... looking forward.
- Status changed from New to Fixed
Added to v4.3-86-g7d2c4e8 (both libpcre and libpcre2 libraries are supported).
Example query (match 'players' but exclude 'championship'): https://regex101.com/r/Wg9cxw/1
(?=.*\bplayers\b)(?!.*\bchampionship\b)
Perfect, will compile now and try... Thank you!!!
Hmm, it's ok, but PCRE should get standard (no extra checkbox!).
There is no option to activate PCRE in the EPG search window (1st tab)...
All suggested changes are in v4.3-100-ga25f02f including JIT optimizations for pcre2.
Thank you very much for the quick support + coding.
I will come with other suggestions.
I have a lot of ideas...
Doesn't seem to work in "Subtitle"... can you doublecheck this please?
The results should'n show anything with "Deutschland"... see attachment...
Also available in: Atom
PDF