Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for any help you can provide.my $s = '<blah>red</blah><blah>white</blah><blah>blue</blah>'; print $s, $/; while (/<blah>(.*)<\/blah>/) { # this RE isn't right... print $1, $/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: non-greedy incremental regular expression?
by virtualsue (Vicar) on May 14, 2005 at 08:03 UTC | |
|
Re: non-greedy incremental regular expression?
by gopalr (Priest) on May 14, 2005 at 04:11 UTC | |
|
Re: non-greedy incremental regular expression?
by eibwen (Friar) on May 14, 2005 at 04:02 UTC | |
|
Re: non-greedy incremental regular expression?
by prasadbabu (Prior) on May 14, 2005 at 04:17 UTC | |
|
Re: non-greedy incremental regular expression?
by TedPride (Priest) on May 14, 2005 at 15:41 UTC |