Sign in
Log inSign up
Sai Laasya Vabilisetty

186 likes

3.1K reads

13 comments

Denny Trebbin
Denny Trebbin
Sep 25, 2020

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

17
2 replies
Saul Blanco Tejero
Saul Blanco Tejero
Sep 25, 2020

Nice :D

Other useful tool here:

Regex Visualizer: For know how regex works

1
Sai Laasya Vabilisetty
Sai Laasya Vabilisetty
Author
Sep 25, 2020

Wow!! I don't know some of these. Thanks for sharing.馃槉 Denny Trebbin Saul Blanco Tejero

1
Maxi Contieri
Maxi Contieri
Sep 26, 2020

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

4
1 reply
Sai Laasya Vabilisetty
Sai Laasya Vabilisetty
Author
Oct 13, 2020

hehe thank you馃構

Robert Beutner
Robert Beutner
Oct 1, 2020

Fantastic resource! I am teaching a little about this right now and this is the perfect resource.

4
1 reply
Sai Laasya Vabilisetty
Sai Laasya Vabilisetty
Author
Oct 13, 2020

Glad this helped you馃槉馃槉

1
Saul Blanco Tejero
Saul Blanco Tejero
Sep 25, 2020

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 :)

3
1 reply
Sai Laasya Vabilisetty
Sai Laasya Vabilisetty
Author
Sep 25, 2020

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馃

2
S茅bastien Portebois
S茅bastien Portebois
Sep 26, 2020

馃憦

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!

3
1 reply
Sai Laasya Vabilisetty
Sai Laasya Vabilisetty
Author
Sep 26, 2020

Loved to see people coming and sharing helpful resources馃槏馃ぉ. Thanks, for sharing.

Your DevOps Guy
Your DevOps Guy
Oct 12, 2020

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!

3
1 reply
Sai Laasya Vabilisetty
Sai Laasya Vabilisetty
Author
Oct 13, 2020

Thank you!馃槉