Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
Python

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

Description

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

Submitted by JAVA - 9 years ago