regex to split snake case and camelcase code example Example: regex split a camelcase (?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])