I have a String
String value ="Caused by:null pointer exception Caused by
: BeanCreationException.. WARNING: its just a warning..";
I would like to split String after keywords "Caused by:" and "WARNING:" so that I have output like
- null pointer exception
- BeanCreationException..
- its just a warning..
Any help would be much appreciated.