You're not checking for success in your first match, so it could be silently failing. Also, definately consider using quotemeta on $str2Brepl.
Dave
In reply to Re: Debug and workaround help
by davido
in thread Debug and workaround help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |