Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Extract the last word in a string
Open Workspace
JavaScript
Match
Created 2021-08-02 08:06
0
Regular Expression
/
\b
(
\w
+
)
$
/
m
Description
Match the last word in a string
Submitted by
Anonymous