Feature #4374
Add support for PCRE regex queries / library (was: Regex fulltext with negative lookahead)
0%
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
History
Updated by Jaroslav Kysela over 7 years ago
- 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'".
Updated by Dirk Diggler over 7 years ago
I studied the differences POSIX ERE and PCRE.
This feature would be a killer-feature!
Can wait for it... looking forward.
Updated by Jaroslav Kysela over 7 years ago
- 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)
Updated by Dirk Diggler over 7 years ago
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)...
Updated by Jaroslav Kysela over 7 years ago
All suggested changes are in v4.3-100-ga25f02f including JIT optimizations for pcre2.
Updated by Dirk Diggler over 7 years ago
Thank you very much for the quick support + coding.
I will come with other suggestions.
I have a lot of ideas...
Updated by Dirk Diggler over 7 years ago
- File Unbenannt3.JPG Unbenannt3.JPG added
Doesn't seem to work in "Subtitle"... can you doublecheck this please?
The results should'n show anything with "Deutschland"... see attachment...