Hi
Can someone please help me to write a regular expression
in Java which will split a String abc="Hello (good morning) world" into
"Hello", "(good morning)", and "world".
Currently, my expression
is abc.split("\\s"); which splits on the basis of spaces only. I tried
abc.split("\\s[^[(\\w\\s\\w)]]"); but that didnt work.
Thanks a lot for all the help
Gem