I would like to know how to split up a large string into a series of smaller strings or words. For example:
I want to walk my dog.
This regex will split word by space like space, tab, line break:
String[] str = s.split("\\s+");