DEV Community

Discussion on: Regex…

Collapse
 
somedood profile image
Basti Ortiz • Edited

You should practice your skills at regex101. It's an amazing site I've been using for quite a while now to practice my RegExp skills.

To really immerse yourself in learning, my advice is to have an actual way of applying your newfound knowledge. For example, there was this one time when I had to format a string into a sentence. The catch was that I had to format a whole bunch of data into strings. So instead of manually typing the string or copying-and-pasting the data from the CSV I was supposed to format—something my peers would have done—I chose to make my life easier by automating the formatting process with RegExp. I blazed through the task while everyone manually punched in the data.

EDIT: Just realized now that I could have just used String#split... 🤦‍♂️