Help for this page
> Will a regex of the form .*c ever match differently > from [^c]*c, and if not, why doesn't the regex parser > optimize it to the later form? What if the first was .*?c
1. m/(.*c)/ && print $1; 2. m/([^c]*c)/ && print $1; 3. m/(.*?c)/ && print $1;