Regular expressions

Email

Make sure you remove all the whitespaces in the part between the ' and the '. I just had to put the line breaks into the expression because the expression is to brought to fit the page.

/*
 * username: alphanumerical values and following: !#$%&'*+-/=?^_`{|}~
 * domain alphanumerical values, - and .
 */
$regExpr = '![\\w\x21\x23-\x27\x2A\x2B\x2D\x2E\x2F\x3D\x3F\x5E\x2D\x60\x7B-\x7E]*
[a-zA-Z0-9]+[\\w\x21\x23-\x27\x2A\x2B\x2D\x2E\x2F\x3D\x3F\x5E\x2D\x60\x7B-\x7E]*
@[a-zA-Z0-9\x2D\x2E]*[a-zA-Z0-9]+[a-zA-Z0-9\x2D\x2E]*\\.[a-zA-Z]{2,}!i';