|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: pick a word contaning reg-exby sundialsvc4 (Monsignor) |
| on Dec 04, 2012 at 16:57 UTC ( #1007118=note: print w/ replies, xml ) | Need Help?? |
|
There are several things that you should, yourself, search for answers to. First, how to write a regular expression that searches for “one-or-more Word characters followed by an exclamation mark.” Then, the meaning of the idea “greedy,” and how to specify it. Finally, how to perform more than one regular-expression match (in a loop ...) within a single string. The information is there e.g. in perldoc perlre. If patiently read from stem to stern.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||