Nice!
And, for windows, change all the single quotes to doubles.
C:\>echo "one & two &# three  four & five & six" | perl -pe +"s/&(#(3(8(;\K)?)?)?)?//;" "one two &# three  four & five & six"
In reply to Re^2: Need a regex to replace incomplete html entities
by ww
in thread Need a regex to replace incomplete html entities
by Chris Daniel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |