in reply to regex question
The reason is that "Non greedy" dot-star matches NOTHING, so it prints nothing.print "$1 $2\n" if($str=~/(.*?)\*(.*)/); # Remove "?" in second capt +ure
Have you been high today? I see the nuns are gay! My brother yelled to me...I love you inside Ed - Benny Lava, by Buffalax
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex question
by Alien (Monk) on Sep 01, 2008 at 07:16 UTC | |
by pjotrik (Friar) on Sep 01, 2008 at 07:29 UTC | |
by JadeNB (Chaplain) on Sep 01, 2008 at 17:59 UTC | |
by moritz (Cardinal) on Sep 01, 2008 at 07:40 UTC | |
by JadeNB (Chaplain) on Sep 01, 2008 at 18:05 UTC |