2026-03-17 21:42:03
from my link log —
All longest regex matches in linear time is possible.
https://iev.ee/blog/all-longest-regex-matches-in-linear-time/
saved 2026-03-17
from my link log —
All longest regex matches in linear time is possible.
https://iev.ee/blog/all-longest-regex-matches-in-linear-time/
saved 2026-03-17
finding all regex matches has always been O(n²). even in the engines built to prevent it
every regex engine that promises linear time breaks that promise the moment you ask for all matches. the problem has been there since the 70s, hiding in plain sight.
— by ian erik varatalu
🤔 https://iev.ee/blog/the-…
Class too large (too many methods)
− 1 file
🟡 Design / code quality
Duplicate literals − should be constants
− ~7 files
Duplicate / suspicious code blocks
− 1 file
🟢 Minor / low-level issues
Regex improvements
− ~4 files
Redundant / unnecessary code (e.g. temp vars, inherited method)
− ~3 files
Like global search and replace but don’t like surprises?
Check out serpl – a handy little command-line app that gives you a visual preview of the changes you are about to make. You can even go in and remove the replacements you don’t want from the source previews. The regex support appears to be basic, however (I couldn’t get a negative lookbehind to work).
KI generierter Code macht ja den Menschen nicht nur dümmer. Ich brauchte heute ein Tool um aus Config-Dateien sensible Informationen zu maskieren. U.a. auch Domains. Hatte erwartet, dass da ein paar RegEx's eingebaut werden. Stattdessen kam Codex mit https://publicsuffix.org/ um die Ecke. Kannte ich nicht. War d…
Finally a package where I can't suspect the author of vibecoding!
"""
Version: 2026.3.32
Fixed segfault.
Version: 2026.3.31
Fixed bug again.
Version: 2026.3.30
Fixed bug.
"""
https://github.com/mrabarnett/mrab-regex/blob/5d51c75da03116e08bb6fb537fae6d8c804cc92c/changelog.txt
(It's also a horribly bad package, with tons of unmaintainable code, heavily relying on CPython internals.)
from my link log —
What 127.5 million forms can tell you about the state of front-end regex input validation on the Web.
https://amandastjerna.se/blog/127-million-forms/
saved 2026-03-02
KI generierter Code macht ja den Menschen nicht nur dümmer. Ich brauchte heute ein Tool um aus Config-Dateien sensible Informationen zu maskieren. U.a. auch Domains. Hatte erwartet, dass da ein paar RegEx's eingebaut werden. Stattdessen kam Codex mit https://publicsuffix.org/ um die Ecke. Kannte ich nicht. War d…