in reply to regex end of line

If all you want to know is if your $newLine ends in \w chars and not a single digit you can use
if ($newline =~ /\w+$/ && $newline !~ /(?<=\W)[0-9]$/)...

T I M T O W T D I

Replies are listed 'Best First'.
Re: Re: regex end of line
by splitOnce (Acolyte) on Jul 30, 2002 at 19:51 UTC
    thanks