Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc issue on x-extract() #101

Open
sputnick-dev opened this issue Feb 19, 2023 · 2 comments
Open

Doc issue on x-extract() #101

sputnick-dev opened this issue Feb 19, 2023 · 2 comments

Comments

@sputnick-dev
Copy link

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 ;)

@benibela
Copy link
Owner

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

@sputnick-dev
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants