Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-12-18 03:46
Flavor·Python

r"
(ocp)(([A-Z]+|[A-Z][a-z0-9]+)(\d|[A-Z][a-z0-9]+)*)(Type|Enum|Struct|Func)(Ptr)?
"
gm
Open regex in editor

Description

Match to

ocp[CamelCase Name][typedef type][Ptr]

Submitted by Xiaoxing Cheng