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
r"
\w+(?:['.-]\w+\.?)?
"
gm
Input 1
1
which would find I'm U.S. co-op, include ending. without the . , but not ' - . rd-
Extraction
which would find I'm U.S. co-op, include ending. without the . , but not ' - . rd-