Help for this page

Select Code to Download


  1. or download this
    > 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
    
  2. or download this
    1. m/(.*c)/ && print $1;
    2. m/([^c]*c)/ && print $1;
    3. m/(.*?c)/ && print $1;