Regular Expressions 101

Library entries

Search for word breaks in CamelCase string

Vote

1

Regular Expression
pcre2

/
(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])
/
gm

Description

Loading markdown...
Submitted by https://stackoverflow.com/questions/7593969/regex-to-split-camelcase-or-titlecase-advanced - 2 months ago