Seems a lot more robust than this solution - well, except if you can't trust the input, ofcourse.
update: never mind, I misread your question.
In reply to Re: replacing code with regex
by Joost
in thread replacing code with regex
by raflach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |