DEV Community

Learn regex the easy way

Zeeshan Ahmd on April 07, 2020

What is Regular Expression? Regular expression is a group of characters or symbols which is used to find a specific patt...
Collapse
 
andibastian profile image
thejagat • Edited

thankyou so much

Collapse
 
sabberworm profile image
Raphael Schweikert • Edited

Very good introduction, thanks for the writeup. My only beef with it is that it does not explain the \b metacharacter, which is both one of the most confusing and one of the most useful tokens in regex. Confusing because it does not match a character at all, in fact it matches nothing (like ^ and $) but it does so only at the places where a word ends or begins, which is why it’s so useful…

Collapse
 
magarcia profile image
Martin Garcia

I didn't know about \b, thanks for sharing it.

Collapse
 
focus97 profile image
Michael Lee

The title of this post was one that (for me) didn't inspire excitement so much as it felt like "I've been developing for 14 years, I should probably know regex better", but this was actually more exciting than I expected. Helpful and concise explanations plus tons of examples made this easy to grok, which felt great. Being able to teach isn't easy. Awesome job on this.

Collapse
 
felipedsc profile image
Felipe Carvalho

Very clear explanation on how to work with regex. Great article!

Collapse
 
bernardwiesner profile image
Bernard Wiesner

Best tutorial I have read on regex! Would have been nice if at the end you would have thrown some harder regex's as examples just for practising what we have just learned.

Collapse
 
fernandojmartin profile image
Fernando Javier Martin

WOW!
I'd love to have had this article way earlier in my career!!
Easy to follow, clear examples; really demystifying.

Stand up applause!
Thank you so much.

Collapse
 
tonypelliccio profile image
Tony Pellicccio

A good refresh on Regex. Thanks. And you haven't lived until you've done back references in Regex.

Collapse
 
tbhaxor profile image
Gurkirat Singh

What ia diff between /xyz/ and /(xyz)/ ?

Collapse
 
mirzaa profile image
Maas Mirzaa

Thank you, this is very useful 👍

Collapse
 
anujsharmabbd profile image
Anuj Sharma

nice Zishan

Collapse
 
k1b3r profile image
Samir Hajiyev

Thank you for the great post.