and then from number 2 till end of the string for second capture $2
No, that's not what (\d*) means. If you wanted that you should use (\d.*) instead. The asterisk means any number of the preceeding match type.
In reply to Re: Regex Minimal Quantifiers
by hippo
in thread Regex Minimal Quantifiers
by pr33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |