Regular Expressions 101

Community Patterns

1...45678...110

Camel-Case Splitter (preserves Acronyms)

0

Regular Expression
.NET 7.0 (C#)

@"
(?<!^)(?=[A-Z][a-z])|(?<=[a-z])(?=[A-Z])
"
g

Description

Splits camel-case string and preserves acronyms

Submitted by Tyler S. - a year ago