in reply to Re: Regex Minimal Quantifiers
in thread Regex Minimal Quantifiers
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex Minimal Quantifiers (updated)
by haukex (Archbishop) on May 24, 2017 at 15:56 UTC | |
by pr33 (Scribe) on May 24, 2017 at 17:37 UTC |