in your case you'd need rules to eliminate idempotence
Edit: for point 1 compare Parsing and translating Perl Regexes
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
In reply to Re: Tidying and simplifying a regular expression
by LanX
in thread Tidying and simplifying a regular expression
by Dallaylaen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |