Project

General

Profile

Bug #4380

PCRE regex queries in "Subtitle"

Added by Dirk Diggler over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-05-18
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-103
Affected Versions:

Description

Doesn't seem to work in "Subtitle"... can you doublecheck this please?
The results should'n show anything with "Deutschland"... see attachment...


Files

tvh.JPG (114 KB) tvh.JPG Dirk Diggler, 2017-05-18 22:21

History

#1

Updated by Jaroslav Kysela over 4 years ago

  • Status changed from New to Rejected

PCRE is fine. Your query is wrong. It's not easy to exclude one word but match other with regex. Debug your queries at: https://regex101.com/ (for example)

#2

Updated by Jaroslav Kysela over 4 years ago

Note that ANY match for tvh is POSITIVE. Including empty strings.

#3

Updated by Dirk Diggler over 4 years ago

The guys from #regex say the expression is ok.
I checked with Regex101.
Seems like lookaheads work in the tool, but it is still returning some incorrect results for some reason.

#4

Updated by Jaroslav Kysela over 4 years ago

The fulltext matches for 'title', 'subtitle', 'summary', 'description' separately (it means if the description (example) is 'ok' for the regex match, it succeeds).

Also available in: Atom PDF