I need help on regex in split() method.
Here is what I have so far :
modelName.trim().split("\\s+");
Unfortunately, if I have a string such as this :
(Blue Yellow) Red Green
It would end up like this :
- (Blue
- Yellow)
- Red
- Green
How do I write a regex to get this result :
- (Blue Yellow)
- Red
- Green