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
Rust type-like ident casing
Open Workspace
Rust
Match
Created 2023-11-04 19:35
1
Regular Expression
r"
^
(?:
(
(?:
bool
|
char
|
str
)
|
(?:
[
fiu
]
(?:
32
|
64
)
)
|
(?:
[
iu
]
(?:
8
|
16
|
128
|
size
)
)
)
|
(
_
*
[
A
-
Z
]
[
a
-
zA
-
Z0
-
9_
]
*
)
)
$
"
xgm
Description
Matches built-in primitives and identifiers with casing conventionally used for type/constant names.
Submitted by
Neel Yadav