Community Patterns

Community Library Entry

1

Regular Expression
Created·2023-11-04 19:35
Flavor·Rust

r"
^(?: ( (?:bool|char|str) |(?:[fiu](?:32|64)) |(?:[iu](?:8|16|128|size)) )|( _*[A-Z][a-zA-Z0-9_]* ) )$
"
xgm
Open regex in editor

Description

Matches built-in primitives and identifiers with casing conventionally used for type/constant names.

Submitted by Neel Yadav