Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-01-27 19:16
Flavor·Python

r"
^[a-zA-Z._'~,-]+(?: +[a-zA-Z._'~,-]+)*$
"
gm
Open regex in editor

Description

Matches words (with certain special chars) and one or more spaces in between those words.

Submitted by JAVA