[pmwiki-devel] Email pattern...
Patrick R. Michaud
pmichaud at pobox.com
Thu May 31 08:20:53 CDT 2007
On Thu, May 31, 2007 at 06:31:02AM -0400, The Editor wrote:
> I put together this pattern to match for emails, but it doesn't seem
> to catch something like email at example, ie without a dot in the second
> half.
>
> ="/^.+ at .+\..+$/
>
> Can someone help me spot what I'm missing? Or suggest a better pattern?
If you're willing to accept names without dots in the second half,
then don't require it:
/^.+ at .+$/
This basically says to match any string containing an @ sign somewhere
in the middle of the string and no newlines.
Pm
More information about the pmwiki-devel
mailing list