cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
and I want to get rid of everything from the second "Tags" to the end. If I say $text = s/Tags.+?$//; then it matches all the text. Is there some way to specify that it should use the "least inclusive" match from the end in order to prevent this?Tags are very useful to included in these posts. Interested in growi +ng a home based business go here. Tags: Vemma Builder · wallstrip · Vemma · Vegas // Mar 2nd 2007 at 3:30 am vemma killa Leave a Comment Name Mail Website
Many TIA...
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp: least inclusive match?
by Sidhekin (Priest) on Mar 02, 2007 at 23:46 UTC | |
by varian (Chaplain) on Mar 03, 2007 at 11:03 UTC | |
|
Re: regexp: least inclusive match?
by johngg (Canon) on Mar 03, 2007 at 09:35 UTC |