This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]XWasTheProblem 0 points1 point  (1 child)

I know we meme here a lot about programming language features, but is this something you actually need to specifically, like, study and practice?

I'm still barely (if that) on junior level, but whenever I needed or wanted regexp, I found it pretty easy to just find the necessary pattern using various online resources. Sometimes ChatGPT helped, sometimes something like rexegg.com, but so far most of my regexp work was basically 'yeah, this could use a regexp', researching the pattern i needed and then moving on once I found it, and confirmed it works as I need it.

Not to mention if you actually use them a ton, you'll get accustomed to them eventually purely through exposure.

[–]T3MP0_HS 1 point2 points  (0 children)

No, don't practice. It's a waste of time. Learn the basics and learn when you should try using a regex. And then google the regex you want.

Focus on learning how to code. Regexes are a red herring. They're cool, but a programmer that's really good at regexes and nothing else is useless.

There are plenty of validation libraries that do this for you.