Steve wrote:

>By the way someone had suggested trying single brackets [:alpha:] this
>simply does not. 
>
Yeah, that's not a good idea when using the :alpha: notation. I
recommended removing the superfluous parens (), which probably is a good
idea as the outer set of parens in:

(<name\@(domain|domain2))

aren't doing anything other than creating a \1 backreference that you
aren't using.

Usually i tend to do [a-z] instead of [[:alpha:]], but they should be
equivalent in a /i regex

Another trick to consider is using \w instead of [[:alnum:]], \w is
equivalent to [a-zA-Z0-9_]  (anything alpha-numeric or underscore). But
that's really a "quick to type" tweak not an accuracy tweak.


>I'm now testing it with the \s+  for spaces to see if that
>makes any difference. It certainly words when I sent mail from pine I must
>see if it does from outside in spam world.
>
That will help if there's any cases of double-space, or a tab instead of
a space, etc..

Reply via email to