Welcome to the Monastery | |
PerlMonks |
pick a word contaning reg-exby keesturam (Initiate) |
on Dec 04, 2012 at 13:22 UTC ( [id://1007086]=perlquestion: print w/replies, xml ) | Need Help?? |
keesturam has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I have started learning perl and was trying to do some exercise in regular expressions.
One of the exercise was this..
"Construct regular expressions which can pick out
words from a file with the Words containing an exclamation mark"
I can write a pgm to find if there is an exclamation in a line/file. But how do I extract the word containing a reg ex (exclamation as in this case)?
I tried googling, but couldn't find a suitable answer.
--Karthick
Back to
Seekers of Perl Wisdom
|
|