Have a look at the discussion following BrowserUK's advice to me at Re: Combining regexes. The gist is that for single-character substitutions, tr is faster than a regex.
Regards,
John Davies
In reply to Re: Need to speed up many regex substitutions and somehow make them a here-doc list
by davies
in thread Need to speed up many regex substitutions and somehow make them a here-doc list
by xnous
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |