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
East pointer, reference and const to west.
Open Workspace
Python
Substitution
Created 2024-08-31 21:20
1
Regular Expression
r"
(?:
(
.
*
)
\s
+
(
&
|
\*
)
\s
*
const
|
(
.
*
)(?:
\s
+
)
const
(?:
\s
*
)(
&
|
\*
)?
)
$
"
mg
Description
just as god intended. "T const*" -> "const T*"
Submitted by
SpaghettDev