Best way to learn regular expressions

What is the best way to learn regular expressions?
Should I use any software?
Thank you.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

käµfm³d 👽Connect With a Mentor Commented:

I highly recommend the following site for a regex library. It really breaks it down for you what each construct means in regex, and even goes so far as to telly which constructs are supported in which languages.
Use any *nix box. Use vi on your *nix box. You can study up on advanced file processing on vi.
skiaboxAuthor Commented:
I have a macbook pro , so I can use the bash shell.
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

käµfm³d 👽Commented:
Practice, practice, practice!   = )

In all seriousness, I started participating here in the regex TA, and most of my knowledge in regex has come from helping others solve their regex quandaries. This gave me many opportunities to practice regex.

You have to be mindful, though, that different languages and different text editors don't always implement the same regex engines or even use the same regex syntax. Just because you understand regex in one language, the text editor you use may use an entirely different syntax. Generally speaking, the theory behind regex is universal. Although different languages/editors may implement different engines, a regex is more or less a state machine. You don't really need to understand all of the gory details of a state machine in order to understand regex, but at times it may help you to understand why a regex is performing a certain behavior.
HonorGodConnect With a Mentor Commented:
And this is "the" book:

Mastering Regular Expressions:
skiaboxAuthor Commented:
Thank you so much guys!
Thanks for the assist, and the points.
Good luck & have a great day.
You can use the Terminal and vi on your Macbook pro.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.