Joined May 2008
10 Photos and videos
Stephan Schreiber created an open source VS Code extension that adds syntax highlighting for Regex tagged template strings! marketplace.visualstudio.com…
1
2
111
Oniguruma-To-ES now has 12M dl/m. Most of that comes from Shiki, which uses it to make VSCode-style syntax highlighting possible in native JS (no large WASM). I like to think it's contributing to Shiki's rapid growth :) Recent example is in Vercel's streamdown.ai
2
114
Huge thanks to Divyansh Singh from the Vue core team for sponsoring my work on GitHub. 😊 github.com/sponsors/slevitha…
99
Improved the docs for regex-recursion, highlighting standalone usage (without Regex ). Less than 2 kB for recursive regex matching with support for all ES2025 regex syntax. github.com/slevithan/regex-r…
2
148
🚢 Released emoji-regex-xs v2.0. Now matches all underqualified emoji included in Unicode's emoji-test.txt list, to better match @mathias's excellent emoji-regex and real-world emoji use. Lib size reduced from 0.3 to 0.2 kB in the process :)
1
3
216
The Onig optimizer (new release today!) built on the same parser github.com/slevithan/oniguru… is also in a class of its own, and has rapidly improved. (regexp-tree's optimizer is pretty good for JS regexes and was early inspiration, but the Onig version has surpassed it in many ways.)
oniguruma-to-es v4.2.0 shipped! 🚢 Continues improving by far the most sophisticated regex translator in the world. JS coders who've never used Oniguruma might still find it useful if they want much more feature-rich regexes (with native perf!) github.com/slevithan/oniguru…
2
126
Steven Levithan retweeted
swiftregex.comをアップデートしてSwift Regexのデバッガを追加しました。パフォーマンスに影響するBacktrack数を調べたりステップごとに実行したりできます。
2
8
43
4,017
oniguruma-to-es v4.2.0 shipped! 🚢 Continues improving by far the most sophisticated regex translator in the world. JS coders who've never used Oniguruma might still find it useful if they want much more feature-rich regexes (with native perf!) github.com/slevithan/oniguru…
2
11
4,290
oniguruma-parser v0.10.0 brings a bunch of quality of life improvements. 🚀 The regex optimizer it includes, which is probably the most interesting part for people who don't regularly use Oniguruma, has continued to improve! github.com/slevithan/oniguru…
1
110
Migrated a bunch of tests from Jasmine to Vitest so I could use TypeScript more easily. Super nice! ⚡ Will be trying to use Vitest everywhere from now on.
75
Over the last week, @TheRedCMD and I converted all of oniguruma-parser from JS to TS. 🎉 Surprised that all of this work uncovered 0 bugs (despite the high complexity of the migrated code), which I think speaks to the pre-existing quality of the lib. github.com/slevithan/oniguru…
2
100
Request to run VS Code's syntax highlighting grammars through my Oniguruma regex optimizer (like Shiki does), which would improve highlighting performance for some languages like C and reduce the size of VS Code: github.com/microsoft/vscode/…
3
3
359
@fabiospampinato @kurtextrem I've updated the issue with some perf numbers: github.com/microsoft/vscode/… Roughly 30% perf improvement for C syntax highlighting just by running the regexes through the optimizer. No ReDoS fixes in C grammar; gains could be much higher if there were. (The VS Code issue doesn't mention Shiki's JS regex engine at all, but % perf gains from the optimizer in are similar across both Onig and JS engines.)
2
89