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-]+)+$
^([^\\.][\\w\\.-~!@#\\$%\\^&`'{}+/|]+[^\\.])@([\\w-]+)(\\.[\\w-]+)+$
Powered by ScribeFire.