What do () parenthesis and | pipe mean in RegExp? #2 REGEX ULTRA BASICS

Опубликовано: 28 Октябрь 2024
на канале: DevTips
12,777
342

This episodes shows the basics of how to use capture groups (), non-capture groups (?:) and alternation (|) in Regular Expressions in JavaScript.

The editor is called Visual Studio Code and is free
💻 https://code.visualstudio.com/

Code used in the episode
📝 https://gist.github.com/chhib/e005e0e...

If you're totally new to regex you should definitely watch the first video with the basic basics of regular expressions in JavaScript
▶️    • Regular Expressions in JavaScript - #...  

The plugin used is called Quokka.js and has both a free and a pro version. There's a sponsored video on Fun Fun Function showing off Quokka in depth:
▶️    • Iterators in JavaScript using Quokka.js  

Learn more about Regular Expressions on MDN
🔗 https://developer.mozilla.org/en-US/d...

Regex Tester websites
🔗 https://www.regexpal.com/
🔗 https://regex101.com/
🔗 https://regexr.com/