regex
Added by Dave H over 4 years ago
What dialect of regex does TVH speak? I did a quick search but haven't found any docs.
I tried "New:.*(?!WWE)" without the double quotes, but it just deletes it. "New:" by itself works. "New:.*" works so it seems it doesn't like (?!WWE) so is there any way to achieve that? (a negative search)
Replies (4)
RE: regex - Added by Dave Pickles over 4 years ago
The contents of https://github.com/tvheadend/tvheadend/tree/master/data/conf/epggrab/eit/scrape should provide the answer.
RE: regex - Added by Dave H over 4 years ago
Thanks Dave. So it appears it depends on the particular regex engine in use and it says: "If either the PCRE or the PCRE2 library are found during configuration, that library can be used for regular expression matching."
Now I have both libpcre1 and libpcre2, so when does this configuration take place? When TVH is compiled, built, installed or run? I suspect compilation, because the UK readme says: "TvHeadend is often compiled with the PCRE regular expression library". In which case I can blame my distro for not compiling it with one of the extended libraries, but I'd like to be sure of my facts.
RE: regex - Added by Jim Hague over 4 years ago
The regex engine is determined at compile time as part of the compile configuration process.