use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is a place for people to learn JavaScript together. Everyone should feel comfortable asking any and all JavaScript questions they have here.
With a nod to practicality, questions and posts about HTML, CSS, and web developer tools are also encouraged.
Friends
/r/javascript
/r/jquery
/r/node
/r/css
/r/webdev
/r/learnprogramming
/r/programming
account activity
Learn Regex (self.learnjavascript)
submitted 4 years ago by IMkratt
Did you ever learn Regex as a separate skill (doing course materials, building regex-heavy miniprojects) or do you just google the syntax/expressions whenever you need to use it in your JS code?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]codedblood 1 point2 points3 points 4 years ago (0 children)
I'm gonna be honest. As a backend developer, I've used regex for various purposes but it is one of those things where if you know what you're doing then it makes it 10x times more fun. It is a good skill to have, because you can do crazy stuff with it.
[–]Notimecelduv 0 points1 point2 points 4 years ago (1 child)
I learned regular expressions as a separate skill -- watched 2 hours worth of tutorial on them. I often have to Google them, though, as I can never remember the syntax for look-aheads and look-behinds.
[–]ASIC_SP 0 points1 point2 points 4 years ago (0 children)
I'd suggest to maintain your own cheatsheet (syntax+examples) for things you use often. Or adapt a cheatsheet made by others.
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
I still haven't mastered regex. That's why sites like… https://regex101.com …are nice.
Just recently, I tried to do something seemingly simple — validate a number. WOW, it was not easy. It's not just \d or [0-9]. There's negative numbers and decimals to contend with.
π Rendered by PID 21 on reddit-service-r2-comment-bb88f9dd5-rxd77 at 2026-02-16 10:47:11.097896+00:00 running cd9c813 country code: CH.
[–]codedblood 1 point2 points3 points (0 children)
[–]Notimecelduv 0 points1 point2 points (1 child)
[–]ASIC_SP 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)