Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-02-10 17:10
Flavor·ECMAScript (JavaScript)

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

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