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
Titlecase
Open Workspace
PCRE2 (PHP)
Substitution
Created 2023-01-21 16:21
0
Regular Expression
/
(
\w
)(
\w
+
)
/
gm
Description
Capitalizes first letter of each word and make the rest lower case
Submitted by
gabrielbergoc