For most simple usage, you can use a StringTokenizer
Look at this link.
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/StringTokenizer.html
For using Regular expressions, Look at Patterns in android.
http://developer.android.com/reference/java/util/regex/Pattern.html