Re: Stingy matching

2006-07-01 Thread Filip Jursik
!!! THANK YOU! :) F. Rob Dixon wrote: Filip Jursik wrote: Hi, this $text = "first first second third"; $text =~ /(first.*?third)/; print $1; gives me "first first second third" as a result instead of expected "first second third" What am I doing wrong?

Re: Stingy matching

2006-07-01 Thread Filip Jursik
Mr. Shawn H. Corey wrote: On Fri, 2006-30-06 at 23:04 +0200, Filip Jursik wrote: Hi, this $text = "first first second third"; $text =~ /(first.*?third)/; print $1; gives me "first first second third" as a result instead of expected "first second third"

Stingy matching

2006-06-30 Thread Filip Jursik
Hi, this $text = "first first second third"; $text =~ /(first.*?third)/; print $1; gives me "first first second third" as a result instead of expected "first second third" What am I doing wrong? I've expected the .*? to limit the wildcard only to the string " second ". Thanx, F. -- To