Skip to content

Tag Archives: regexp

Split Pascalcase String

11-Sep-09

Do you ever need to split a camel case or pascal case string to a set of words? This can be achieved simply by regular expressions in Java as well as C#. The following code is for Java:

String camelCase = “StructuralDesignPattern”;
StringBuffer label = new StringBuffer(camelCase + 10);
[...]