You might find the following to your liking:
$str =~ s|(?<=\S)\&\#x0007E\;\&\#x0007E\;\&\#x0007E\;(?=\S)|~~~|g;
In reply to Re: Word boundary '\B' - Question
by ikegami
in thread Word boundary '\B' - Question
by prasadbabu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |