186 likes
路
3.1K reads
13 comments
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
- Online regex tester and debugger
- Regexper (My personal favorite <3)
- RegExr: Learn, Nuild. & Test Regex
Visualize RegExes
Wow!! I don't know some of these. Thanks for sharing.馃槉 Denny Trebbin Saul Blanco Tejero
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
hehe thank you馃構
Fantastic resource! I am teaching a little about this right now and this is the perfect resource.
Glad this helped you馃槉馃槉
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 :)
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馃
馃憦
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:
- easy support of whitespace (when you have to deal with more than just spaces)
- support various languages. Not all regexes are exactly the same
- code generation. Ease the process to escape things
- built-in tests support!
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!
Loved to see people coming and sharing helpful resources馃槏馃ぉ. Thanks, for sharing.
For more advanced use cases, the Java classes I have mostly worked with are in https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html.
Nice and straightforward intro to regex, Sai Laasya Vabilisetty!
Thank you!馃槉