gha-find-replace
gha-find-replace copied to clipboard
Regular expression syntax not documented
The docs say 'can be a regex' but if I give a piece of text with regex-like characters, it gets confused, e.g. terraform?ref=v0.3.0
doesn't work. Can we have an 'exact string match' option?
Different languages have different regular expression syntax and engines, can you document which you're using?
Thanks!
Thanks for raising this @mikeparker.
it gets confused, e.g.
terraform?ref=v0.3.0
doesn't work
As the input is a regular expression you must escape characters like ?
, .
and =
.
Can we have an 'exact string match' option?
I would be happy to review a PR to add this feature. But I don't have time to add this myself at the moment. Sorry!
Different languages have different regular expression syntax and engines, can you document which you're using?
I've updated the README with a link to the Golang docs on regular expressions. I hope that helps!
Have you found time to implement this feature since? Is help-wanted
on this PR?