... at the cost of generality. If you want to use such a snippet multiple times in a regex you have to keep track which capture to use.
Actually I'm working on a module that generates regexes for matching integers, and that's one of the fallback solutions. When you don't know how your regex will be used, you can't rely on the number of the capture.
In reply to Re^3: Match range of number
by moritz
in thread Match range of number
by johntio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |