xidel icon indicating copy to clipboard operation
xidel copied to clipboard

Doc issue on x-extract()

Open sputnick-dev opened this issue 2 years ago • 2 comments

As far as we can use PCRE regex in x-extract() (very nice trick), you should rewrite the doc:

In https://www.benibela.de/documentation/internettools/xpath-functions.html#x-extract

s/grep -oE/grep -oP

By the way, thanks for your tool, it's a must have in the toolchest, I use it every day ;)

sputnick-dev avatar Feb 19 '23 15:02 sputnick-dev

With "basically" I mean it is similar, but not the same.

It does not support full PCRE. The syntax is from the https://www.w3.org/TR/xpath-functions-30/#regex-syntax

And the implementation does not do backtracking, so even some of those regexps cannot be evaluated

benibela avatar Feb 19 '23 21:02 benibela

Maybe add an explanations that it's a subset of Perl's regex(?) allowing \d|\w|\s...

sputnick-dev avatar Feb 19 '23 21:02 sputnick-dev