Flagrant Badassery

A JavaScript and regular expression centric blog

author photo

Author Archive for Steven Levithan

Contact Steven Levithan

New Blog at slev.life

Flagrant Badassery has been pretty quiet for years now, but it's still my home for all things JavaScript and regular expression related. That said, I've just launched a shiny new blog where I'm posting about everything unrelated to programming. Come check it out at slev.life. Want to learn about being blind in your mind, or […]

Read More

XRegExp 3.0.0!

After 3+ years, XRegExp 3.0.0 has been released. Standout features are dramatically better performance (many common operations are 2x to 50x faster) and support for full 21-bit Unicode (thanks to Mathias Bynens). I’ve also just finished updating all the documentation on xregexp.com so go check that out. 🙂 If you haven’t used XRegExp before, it’s […]

Read More

Regex Cookbook 2nd Edition Contest Winners

For the last six days, I've been running a contest on my blog to win one of 15 free copies of Regular Expressions Cookbook, 2nd Edition. Thanks to all who participated and spread the word! I've read every one of your comments, and appreciate the congratulations and the great comments about the first edition, etc. […]

Read More

Win a Free Copy of Regex Cookbook 2nd Edition

Update: This contest is now finished. See the list of winners. I'm excited to announce the release of Regular Expressions Cookbook 2nd Edition, which I wrote together with regex superguru Jan Goyvaerts. It has actually been available as an ebook for a couple weeks on oreilly.com, but as of now, it is also in stock […]

Read More

JavaScript Regex Lookbehind Redux

Five years ago I posted Mimicking Lookbehind in JavaScript on this blog, wherein I detailed several ways to emulate positive and negative lookbehind in JavaScript. My approaches back then were all fairly rough, and it was complicated to properly customize any of them to work with a given pattern. Plus, they were only designed to […]

Read More