Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
^([\p{L}][^\p{L}]*){2,}$
/
gi

Description

RegExp to match that user has entered at least 2-letters (including international letters) in a field

Submitted by anonymous - 9 years ago