Just to show how hard it is to do this...

Monday, June 05, 2000, 10:39:58 AM, Steve wrote:
>      specials    =  "(" / ")" / "<" / ">" / "@"  ; Must be in quoted-
>                  /  "," / ";" / ":" / "\" / <">  ;  string, to use
>                  /  "." / "[" / "]"              ;  within a word.

[snippage]

>     m/([\w\!\.\#\$\%\^\&\*\_\-\=\+\'\,\/\?\\\|\`\~]+)@/ *should*, in theory,
                                            ^^

    That would match a \ which is in the specials definition (2nd row, 2nd to
last character) so it shouldn't be in there.  Also, to be completely correct,
\w includes _ so that isn't needed later on in the match.  If I felt like it I
could also remove a lot of the \s, but I don't feel like wondering which
characters are special and which aren't.

    m/([\w\!\.\#\$\%\^\&\*\-\=\+\'\,\/\?\|\`\~]+)@/ should do the trick.  :)



-- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------

-- 
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------

You are subscribed as : [email protected]


Reply via email to