graby
graby copied to clipboard
Regex Strip
Hello everyone, Is it possible to write config to strip or replace some values based on regex not on xpath?
Not possible yet and quite complex because executing regex on html is hard.
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.