It may help to look at dice's coefficient, where a very similar (identical?) problem was discussed.
In reply to Re: force regular expression to match every item only once
by FunkyMonk
in thread force regular expression to match every item only once
by hiddenOx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |