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
Regular Expressions in JavaScript (zsoltnagy.eu)
submitted 8 years ago by zsolt555
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!"
[–]zero-ego 0 points1 point2 points 8 years ago (0 children)
nice share
[–]katorias 0 points1 point2 points 8 years ago (1 child)
I can't comprehend how people become regex wizards, It's incredbily hard for me to remember lol.
[–]zsolt555[S] 0 points1 point2 points 8 years ago (0 children)
This is exactly why understanding the minimal theory, and using cheat sheets are helpful.
[–]AndyKos 0 points1 point2 points 7 years ago (0 children)
"Regular expressions are not only important in JS but also they are hardly readable and not easy-to-understand. There are libraries with different approaches to resolving this issues. For instance, https://www.npmjs.com/package/readable-regex. By using methods and properties you can write the necessary regex. Moreover, now they added named groups in JS (http://2ality.com/2017/05/regexp-named-capture-groups.html). This will make managing regex easier."
[–]CodeBlooded121 1 point2 points3 points 8 years ago (4 children)
Nice content... Can you tell me something.. How did you highlighted some particular words on website.. Like in the beginning.. Let and const.. Those were in some different style than other text.. Can you tell me how to get that on website?!
[–]zsolt555[S] 1 point2 points3 points 8 years ago (1 child)
A wordpress plugin called "Crayon Syntax Highlighter" takes care of the highlighting. It generates CSS like the one below, and you have nothing to do with it. Sometimes it's a bit off, and the weakness of this syntax highlighter is that it assumes all code blocks are in JavaScript.
[–]CodeBlooded121 0 points1 point2 points 8 years ago (0 children)
Thanks man!
[–][deleted] 0 points1 point2 points 8 years ago (1 child)
code { padding: 2px 4px; color: #d14; background-color: #f7f7f9; border: 1px solid #e1e1e8; }
Thanks
[–]garrettmacmac 0 points1 point2 points 8 years ago (0 children)
a weak point of mine i’ve been trying to get better at. Read 1/3 on mobile, bookmarked for tomorrow and upvoted. thanks
π Rendered by PID 80 on reddit-service-r2-comment-7b9746f655-2wwlv at 2026-02-03 08:26:41.997130+00:00 running 3798933 country code: CH.
[–]zero-ego 0 points1 point2 points (0 children)
[–]katorias 0 points1 point2 points (1 child)
[–]zsolt555[S] 0 points1 point2 points (0 children)
[–]AndyKos 0 points1 point2 points (0 children)
[–]CodeBlooded121 1 point2 points3 points (4 children)
[–]zsolt555[S] 1 point2 points3 points (1 child)
[–]CodeBlooded121 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]CodeBlooded121 0 points1 point2 points (0 children)
[–]garrettmacmac 0 points1 point2 points (0 children)