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 - 2 months ago (Last modified 2 months ago)