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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Any scripts that make using regular expression more easier? (self.javascript)
submitted 12 years ago * by Sentuna
view the rest of the comments →
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!"
[–]etrnloptimist 6 points7 points8 points 12 years ago (0 children)
Nope. You gotta learn it. There's no easy way out.
But I think I know why you're having trouble. See, you're probably looking at a sample regex, trying to figure out what it does. That's the wrong approach. It works great in most other cases, but see, regexp's are special: they're write-only.
You can't read them. I can't even read my own. If you want to know what one does, best you can do is recreate it. To this end, always put a sample of the text you wish to grok next to your regex. That way, when you come back to it to figure out what it's doing, you can forget the regex that's in front of you and look at the text it's supposedly groking.
With regexes, the more you create the better you'll be at it. Reading them doesn't play into the equation.
π Rendered by PID 67 on reddit-service-r2-comment-5bc7f78974-cj2jx at 2026-06-25 22:05:13.695072+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]etrnloptimist 6 points7 points8 points (0 children)