---
title: "Comment by Saul Blanco Tejero on \"REGEX - It's a Piece of Cake!\" | Hashnode"
description: "Why do you use a character set in this example? String[] str=s.split( &quot;[\\\\s]+&quot; ); I mean, it is unnecessary in this case... Anyway, I love to see peop"
url: "https://hashnode.com/posts/regex-its-a-piece-of-cake/5f6df5ddade1fb598d4394b5/comment/5f6e230f60599c596c4725b6"
---

[Discussion](https://hashnode.com/posts/regex-its-a-piece-of-cake/5f6df5ddade1fb598d4394b5)

Comment [REGEX - It's a Piece of Cake!](https://hashnode.com/posts/regex-its-a-piece-of-cake/5f6df5ddade1fb598d4394b5)

[Saul Blanco Tejero](https://hashnode.com/@elGolpista)

[Sep 25, 2020](https://hashnode.com/posts/regex-its-a-piece-of-cake/5f6df5ddade1fb598d4394b5/comment/5f6e230f60599c596c4725b6)

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](https://hashnode.com/@Laasya_Setty)

[Sep 25, 2020](https://hashnode.com/posts/regex-its-a-piece-of-cake/5f6df5ddade1fb598d4394b5/comment/5f6e230f60599c596c4725b6#reply-5f6e2de2ade1fb598d439803)

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🤗
