Check out example codes for "java split for multiple characters". It will help you in understanding the concepts better.

Code Example 1

String input = "Hi,X How-how are:any you?";
String[] parts = input.split("[\\W]");

Learn ReactJs, React Native from akashmittal.com