In the end it comes down to readability, and readability depends on the comprehension level of the reader.
You have a much higher level of regex-fu than I do, so yours is clear and understandable. I just had to look at it carefully before I could clearly see what it was doing.
PS Good job -- that's a very nice piece of code.
In reply to Re^9: regex find and replace with a twist
by talexb
in thread regex find and replace with a twist
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |