How can I divide name strings starting with different language-specific characters

advertisements

How do I divide name strings beginning with different language specific characters?

Seems an easy question, but unless you know your way it's kind of hard!

I wish to do this without any extra utility library. Can it be done with just String class?

SORRY (idiot Me!) LET ME REPHRASE IT:

I have contact names in a phone book. Some of them are Hebrew/Arabic some of them are Chineese, and some are English. I want to dissect these names in to ones that start with each language.

What String utility should I use for that?


You can do it with the String class. Create a regex with the characters you want to be used for splitting and use String.split(regex)