How to scrub a document of all text between brackets with find and replace
Posted
by sam
on Super User
See other posts from Super User
or by sam
Published on 2010-05-14T18:28:26Z
Indexed on
2010/05/14
18:35 UTC
Read the original article
Hit count: 213
find-and-replace
I have a log file and I need to find all instances of <password>
hash here </password>
and remove the hash and replace it with some dummy text like aaa-aaa-aaa-aaaa.
The recurring search argument is anything that matches a bracket that starts with <password>
and ends with </password>
. All the hashes being replaced will be different.
What's the easiest way to go a bout this? The log is on a windows machine. Probably easiest would be to use MS word for me, unless it's achievable with wordpad, notepad, or some other light weight editor like textpad.
thanks
© Super User or respective owner