It doesn't matter if the string is modified or not. ... a ... solution that doesn't modify the string, it's also fine.
Please see Re: substitution in regular expression from half an hour ago.
In reply to Re^7: substitution in regular expression
by AnomalousMonk
in thread substitution in regular expression
by aeqr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |