© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Saul Blanco Tejero
Why do you use a character set in this example?
String[] str=s.split("[\\s]+");
I mean, it is unnecessary in this case...
Anyway, I love to see people sharing the regex power :)
Sai Laasya Vabilisetty
Java Developer | Machine Learning| Tech Blogger
Yup Saul, I agree. I added so people who don't know and who are new to regex can also easily understand.😊 Thanks for feedback🤗