Thanks .
All I wanted to know if the (.*?) matches 0 characters at the start of the string . I am aware that \d* matches 0 or more digits .
In this case , Both the captures match 0 characters at the start of the string and return nothing .
In the case of (.*?)(\d+) , I got confused how (.*?) matches 'I have ' instead of an empty string
In reply to Re^2: Regex Minimal Quantifiers
by pr33
in thread Regex Minimal Quantifiers
by pr33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |