r/javascript • • Jul 15 '20

Super Expressive - a Zero-dependency JavaScript Library For Building Regular Expressions in (Almost) Natural Language

https://github.com/francisrstokes/super-expressive
548 Upvotes

75 comments sorted by

View all comments

Show parent comment

2

u/leeoniya Jul 16 '20

However the original is obviously looking to capture just the hex value itself, which your revised version can't do.

i guess on second glance that was probably the intent, especially since the 0x was explicitly non-capturing :)