Group Abstract Group Abstract

Message Boards Message Boards

Easy way to split CamelCase ?

Is there an easier way to split CamelCase? Perhaps anything builtin to avoid RegularExpression?

StringJoin[StringSplit["AntiqueWhite and LavenderBlush", RegularExpression["([a-z])([A-Z])"] -> "$1 $2"]]

Out[]= "Antique White and Lavender Blush"

POSTED BY: Vitaliy Kaurov
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard