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