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

Regex Strip #245

Open
zyuhel opened this issue Dec 11, 2020 · 2 comments
Open

Regex Strip #245

zyuhel opened this issue Dec 11, 2020 · 2 comments

Comments

@zyuhel
Copy link
Contributor

zyuhel commented Dec 11, 2020

Hello everyone, Is it possible to write config to strip or replace some values based on regex not on xpath?

@j0k3r
Copy link
Owner

j0k3r commented Dec 15, 2020

Not possible yet and quite complex because executing regex on html is hard.

@zyuhel
Copy link
Contributor Author

zyuhel commented Dec 15, 2020

Regex imo could be executed on two steps, first one on full html, it is not the best way to do it, but it is not pretty bad, if user write bad config, it is always problem of the user.
And the second one, on the extracted config.
Something like

regex_strip_before:
regex_strip_after:

I could write it and make pr, but i am not sure, will it ever be included. Or should i make it around graby not inside.

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