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 - a month ago (Last modified a month ago)