Regular Expressions 101

Community Patterns

1...45678...900

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^[a-z0-9\.-_]+[@][a-z0-9-_]+[\.][a-z0-9\.]{2,5}$
/
i

Description

this regex matches for .com and/or .co.uk

Submitted by Michael Kindle - 8 years ago