Regular Expressions 101

Community Patterns

1...45678...631

English/Hebrew Text (no numbers)

0

Regular Expression
ECMAScript (JavaScript)

/
[a-zA-Z\u0590-\u05FF\u200f\u200e ]+((([-,\.\s]+)?[a-zA-Z\u0590-\u05FF\u200f\u200e ]+)?)+
/
gm

Description

Detects English & Hebrew text, but no numbers. Number detection could easily be added, as well as many other configurations. The main point here is that \p{Hebrew} is a very pretty way to include Hebrew characters.

Submitted by MegaSpaceHamlet - 2 years ago