Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-02-22 14:20
Flavor·Java

"
[^\W\d_]+(?=.*@)
"
g
Open regex in editor

Description

This will match any words that show up before the @ sign in an email. Digits, dots, commasz and other special characters are ignored.

Submitted by WojciechW