Welcome to the Monastery | |
PerlMonks |
Re: using regular expression to extract subset from a lineby DamnDirtyApe (Curate) |
on Dec 30, 2004 at 19:54 UTC ( [id://418369]=note: print w/replies, xml ) | Need Help?? |
I'll leave the analysis of what you've got to someone who's better at regexps than I, but if you're simply looking to extract the argument from a space-delimited string that ends in "makefile", try something simpler like this:
HTH Update: You could do this with split and grep also:
_______________ DamnDirtyApe Those who know that they are profound strive for clarity. Those who would like to seem profound to the crowd strive for obscurity. --Friedrich Nietzsche
In Section
Seekers of Perl Wisdom
|
|