Mar 27, 2007

Regular Expression to

I was looking for a regular expression to validate an email address. I found some useful ones but this was the final one I came up with. I was using the Java regular expression implementation.



^([^\\.][\\w\\.-~!@#\\$%\\^&`'{}+/|]+[^\\.])@([\\w-]+)(\\.[\\w-]+)+$



Powered by ScribeFire.