I hope I understand correctly what you are trying to do... does this seem right?
# note the ? perl -ple 's/<.*?>/<blah>/g' data.txt
Where data.txt contains:
Hello. I'm <cold>. Very <cold>. I like to be <hot>. This is <today>. <today> I don't know what happened <yesterday>.
...and the result:
perl -ple 's/<.*?>/<blah>/g' data.txt Hello. I'm <blah>. Very <blah>. I like to be <blah>. This is <blah>. <blah> I don't know what happened <blah>.
Steve
In reply to Re: Find/Chng every <any>
by stevieb
in thread Find/Chng every <any>
by Saved
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |