Written as two statements, your expressions are clear. Why confuse the issue by writing them as one?
"Optimize" does not mean "use as few statements as possible."
In reply to Re: How to replace in one regexp
by Sue D. Nymme
in thread How to replace in one regexp
by appleii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |