Fantastic resource! I am teaching a little about this right now and this is the perfect resource.
Nice Article !
Reminds me of a funny quote
"One day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?"
-Larry Wall
👏
Other useful tools: regex101.com After many years of using tools (I love regexes!), I settled down on this one (rather than others) for a few reasons:
regexplained.co.uk which builds a railroad diagram of the regex pattern you give it. Makes it easy to review/read/understand a new pattern.... as they grow they can become hard to read easily, this helps a lot!
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 :)
A good run down and easy to read :-)
I add some links I find useful:
Cheat Sheet
A vast collection of solutions
Generate RegExes from input data
Online Editors
Visualize RegExes
Your DevOps Guy
Learn to think like a software engineer | Ex SDE @amazon
For more advanced use cases, the Java classes I have mostly worked with are in docs.oracle.com/javase/7/docs/api/java/util/regex….
Nice and straightforward intro to regex, Sai Laasya Vabilisetty!