Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: regexp: least inclusive match?by Sidhekin (Priest) |
on Mar 02, 2007 at 23:46 UTC ( [id://602988]=note: print w/replies, xml ) | Need Help?? |
If the marker is a plain string (as in the example, without regex specials), substr and rindex ought to do the job:
Otherwise you could for instance take advantage of * being greedy from the start:
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|