in reply to How to split CamelCase?

I don't think I can improve on all the regexes suggested by my fellow Monks, but I find it somehow strange that for lowercase they all use [a-z] (and for uppercase [A-Z]) thereby entirely forgetting that there are a lot of other lower/uppercase characters around which fall outside of these characterclasses.

Far easier and better to use [[:lower:]] and [[:upper:]] which will work with all lower and upper case characters.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James