Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^\p{L}+(?:([\ \-\']|(\.\ ))\p{L}+)*$
/
u
Unit Tests
Brownsburg-Chatham
→ regex does match
Cap-Santé
→ regex does match
Côte
Saint-Luc
→ regex does match
Coteau-du-Lac
→ regex does match
Estérel
→ regex does match
L'Ancienne-Lorette
→ regex does match
St.
Albert
→ regex does match
Los
Angeles
→ regex does match
Calgary
→ regex does match
Calgary
→ regex does not match
Calgary
→ regex does not match
$aint
John
→ regex does not match
Néewiller-près-lauterbourg
→ regex does match
Line
Feed
→ regex does not match
Two
Spaces
→ regex does not match
Tab
Character
→ regex does not match
Toront8
→ regex does not match
'.
'
→ regex does not match