Regular Expressions 101

Community Patterns

Community Library Entry

-1

Regular Expression
ECMAScript (JavaScript)

/
\{\s*#each\s+(\w+)\s+in\s+(\w+)\s*\}([\s\S]*?)\{\s*\/each\s*\}
/
i

Description

Match an email address and the TLD (.com, .net, .org etc)

String: test@test.net Matches: test@test.net|.net

Submitted by Frosty - a year ago (Last modified 2 months ago)