DEV Community

Introduction to JavaScript Regular Expressions

Atta on August 09, 2019

This post was originally published on attacomsian.com/blog. A regular expression (also called regex or regexp) is a sequence of characters that...
Collapse
 
scooperdev profile image
Stephen Cooper

Thanks for all the examples! Only just realised you can use regexes in query selectors too! Very helpful when working with a tool like Puppeteer.

Collapse
 
attacomsian profile image
Atta

Thanks for the tip ✌️ I didn't know about it.

Collapse
 
loup20 profile image
loup20

love it.

Collapse
 
joeattardi profile image
Joe Attardi

Unfortunately lookbehind is not fully supported in all browsers/JS engines yet. This bit me a while back when I was working on a problem that would have been a simple fix with lookbehind 😕

Collapse
 
joeattardi profile image
Joe Attardi

They are coming, though! Lookbehind is currently a stage 4 proposal.