Community Patterns

Community Library Entry

-1

Regular Expression
Created·2023-06-16 19:08
Updated·2024-10-03 20:54
Flavor·ECMAScript (JavaScript)

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

Description

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

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

Submitted by Frosty