Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
(?:(.*)\s+(&|\*)\s*const|(.*)(?:\s+)const(?:\s*)(&|\*)?)$
"
mg

Description

just as god intended. "T const*" -> "const T*"

Submitted by SpaghettDev - 3 months ago (Last modified 3 months ago)