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
/
^[a-zA-Z]+(?:[\s-'.&/][a-zA-Z]+)*(?:[.|\s])?(?:[\(a-z\)])*$
/
Unit Tests
Fenway/Kenmore
→ regex does match
La
Crosse-Eau
Claire
→ regex does match
Wilkes
Barre-Scranton
→ regex does match
Ft.
Myers-Naples
→ regex does match
Hartford
&
New
Haven
→ regex does match
Albany-Schenectady-Troy
→ regex does match
Cleveland-Akron
(Canton)
→ regex does match
Ft.Wayne
→ regex does match
ST.
Mount
→ regex does match
Ft.
Wayne
→ regex does match
Portland-Auburn
→ regex does match
Little
Rock
Air
Force
Base
→ regex does match
Larkfield-Wikiup
→ regex does match
O'Fallon
→ regex does match
...........
→ regex does match
D.C......
→ regex does match
D............CC
→ regex does match
D.C.
→ regex does match
New
York
→ regex does match
Charlotte
→ regex does match