NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

Replies are listed 'Best First'.
Re: pattern matching
by Jaap (Curate) on Feb 25, 2003 at 18:32 UTC
    Please don't shout by using all capitals and please use some <br>'s to make a newline.
    Also, your regexp's don't seem right to me. If you want to match a word without punctuation, you might try something like this:
    if ($word =~ m/([a-zA-Z0-9\']+)/) { print $1; }
Re: pattern matching
by artist (Parson) on Feb 25, 2003 at 18:33 UTC
    Hi Fasteddie Welcome to perl monstery.
    • Please repost your question
    • Don't use CrAPs.
    • Wrap your code between code tags, so it will not lose the special characters.
    • Read some of QandASection: regular expressions questions and answers to practice with Regexes.
    artist