in reply to catching \n

This doesn't have to deal with \n.... but is there an easy way to find any punctuation in a sentence and rip it out? or would I have to type in ?|.|,| and whatnot in the regex?

Replies are listed 'Best First'.
Re: Re: catching \n
by TheDoc (Initiate) on Oct 07, 2003 at 01:59 UTC
    ok so I just said
    unless ($msg =~ /[a-z]|[A-Z]|[0-9]/g) { $msg = "a"; }
    and that seemed to fix the problem... so false alarm I guess