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

Improve Text-Replace Documentation/Examples #467

Open
educweb opened this issue Jul 19, 2022 · 1 comment
Open

Improve Text-Replace Documentation/Examples #467

educweb opened this issue Jul 19, 2022 · 1 comment

Comments

@educweb
Copy link

educweb commented Jul 19, 2022

Hi,

I'm new to the tool but saw in the command line help:

  -rt, --replace-text <expressions-file>
                           filter content of files, replacing matched text. Match expressions should be listed in the file, one expression per line - by default, each expression is treated as a literal, but 'regex:' & 'glob:' prefixes are supported, with '==>' to specify a replacement string other than the default of '***REMOVED***'.

I stumbled quit a bit over the ==> (original I had a white space on either side of the arrow). It's not even mentioned on the docs website as a possibility. Could we update the documentation website to add a find and replace example? It probably wouldn't hurt to add a glob and regexp examples too, since I noticed those are also absent.

e.g.
password.txt

[email protected]==>[email protected]
regex:password=\w+==>password=
glob:???
@Sagor2214
Copy link

Hi,

I'm new to the tool but saw in the command line help:

  -rt, --replace-text <expressions-file>
                           filter content of files, replacing matched text. Match expressions should be listed in the file, one expression per line - by default, each expression is treated as a literal, but 'regex:' & 'glob:' prefixes are supported, with '==>' to specify a replacement string other than the default of '***REMOVED***'.

I stumbled quit a bit over the ==> (original I had a white space on either side of the arrow). It's not even mentioned on the docs website as a possibility. Could we update the documentation website to add a find and replace example? It probably wouldn't hurt to add a glob and regexp examples too, since I noticed those are also absent.

e.g.
password.txt

[email protected]==>[email protected]
regex:password=\w+==>password=
glob:???

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