Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?<!^)((?<=[a-z])[A-Z0-9]|[A-Z](?=[a-z]))
"
gm

Description

Converts camel or pascal case to snake case But it still needs to be converted to lower case

Submitted by anonymous - 2 years ago