RSSAmplifier

Blog

Flagrant Badassery

A JavaScript and regular expression centric blog

blog.stevenlevithan.comRSS feed ↗5 posts

Latest posts

Oniguruma-To-ES: Translate Oniguruma regexes to native JavaScript

A couple months ago I launched a new open source project, Oniguruma-To-ES. You can use it to: Take advantage of Oniguruma's many extended regex features in JavaScript. Run regexes written for Oniguruma from JavaScript, such as those used in TextMate grammars (used by VS Code, Shiki syntax highlighter, etc.). Share regexes across your Ruby and Continue reading Oniguruma-To-ES: Translate Oniguruma…

Regexes Got Good: The History and Future of Regular Expressions in JavaScript

Over at Smashing Magazine, I just published a 3,100-word (no fluff) article evaluating the history, present state, and future of regexes in JavaScript, with lots of tips. I think all JavaScript developers will learn something from this, and I'd love to know what was new for you! Check it out: Regexes Got Good: The History Continue reading Regexes Got Good: The History and Future of Regular…

Launching: Regex+ and Regex Colorizer v1

I've recently released two new open source regex libraries. Regex+ Regex+ provides a regex template tag for dynamically creating readable, high performance, native JavaScript regular expressions with best practices built-in and powerful/advanced features that improve performance, readability, and maintainability. It's lightweight and supports all ES2025 regex features. Highlights include support…

Awesome Regex: The best regex resources for all major regex flavors

I created a curated list on GitHub of the best regular expression tools, tutorials, libraries, and many other resources. It covers all major regex flavors, and currently includes especially deep coverage of regular expressions in JavaScript (including a concise history of all regex features added to JavaScript in ES6 through ES2024, plus active proposals for Continue reading Awesome Regex: The…

parseUri 2.0: A mighty but tiny URI parser

I created parseUri v1 17 years ago, but never hosted it on GitHub/npm because it's older than both of those tools. Nevertheless, it’s been used very widely ever since due to it being tiny and predating JavaScript’s built-in URL constructor. After this short gap, I just released v2: github.com/slevithan/parseuri. It’s still tiny (nothing similar comes Continue reading parseUri 2.0: A mighty but…