diff --git a/regexsnippets.code-snippets b/regexsnippets.code-snippets index e882d76..2a2239f 100644 --- a/regexsnippets.code-snippets +++ b/regexsnippets.code-snippets @@ -1,7 +1,7 @@ { "Validate E-Mail Address": { "prefix": "!valemail", - "body": "/^[A-Z0-9!#$%&'*+/=?^_`{|}~-][A-Z0-9!#$%&'*+/=?^_`{|}~.-]*[A-Z0-9!#$%&'*+/=?^_`{|}~-]@[A-Z0-9][A-Z0-9-]*\\.[A-Z0-9-]*[A-Z0-9]$/igm", + "body": "/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/igm", "description": "Validates the given email address" }, "Validate Hexadecimal Color Value": { @@ -320,4 +320,4 @@ "body": "<(FONT|font)([ ]([a-zA-Z]+)=(\"|\\')[^\"\\\\']+(\"|\\'))*[^>]+>([^<]+)(<\/FONT>|<\/font>", "description": "Replaces all the font tags in the given string with a single space" } -} \ No newline at end of file +}