Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

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

Description

Match to

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

Submitted by Xiaoxing Cheng - 2 years ago