DEV Community

Discussion on: A regex cheatsheet for all those regex haters (and lovers) 👀

Collapse
 
catherinecodes profile image
catherine

Nice! I didn't learn those yet

Collapse
 
simov profile image
simo

You can achieve laziness with negated set too:

/"[^"]+"/.exec('a "witch" and her "broom" is one') // "witch"
Enter fullscreen mode Exit fullscreen mode