I also changed the regex delimiter to | so that you don't have to escape the / in </doct>.Yuck, please use something else next time. | is a regex metacharacter, you just opened a can of worms.
Makeshifts last the longest.
In reply to Re^2: search and replace is not working as expected...
by Aristotle
in thread search and replace is not working as expected...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |