Hacker News with Generative AI: Regex

Regex Isn't Hard (2023) (timkellogg.me)
Regex gets a bad reputation for being very complex. That’s fair, but I also think that if you focus on a certain core subset of regex, it’s not that hard. Most of the complexity comes from various “shortcuts” that are hard to remember. If you ignore those, the language itself is fairly small and portable across programming languages.
Regex is almost all you need (lookingatcomputer.substack.com)
When it comes to secret detection, regex is all you need. Almost.
Bad Apple but it's 6,500 regexes that I search for in Vim (eieio.games)
Why should I leave vim to watch a video?
Bad Apple with Regex in Vim (eieio.games)
Why should I leave vim to watch a video?
Rust regex engine internals as a library (burntsushi.net)
Over the last several years, I’ve rewritten Rust’s regex crate to enable better internal composition, and to make it easier to add optimizations while maintaining correctness.
How on Earth does ^.?$|^(..+?)\$1 produce primes? [video] (youtube.com)
Giving C++ std:regex a C makeover (nullprogram.com)
Suppose you’re working in C using one of the major toolchains — that is, it’s mainly a C++ implementation — and you need regular expressions. You could integrate a library, but there’s a regex implementation in the C++ standard library included with your compiler, just within reach. As a resourceful engineer, using an asset already in hand seems prudent. But it’s a C++ interface, and you’re using C instead of C++ for a reason, perhaps _to avoid dealing with C++_. Have no worries. This article is about wrapping [`std::regex`](https://en.cppreference.com/w/cpp/regex) in a tidy C interface which not only hides all the C++ machinery, but _utterly tames it_. It’s not so much practical as a potpourri of interesting techniques.
Regex Crossword (mathspp.com)
Emacs: smarter search and replace (2021) (xenodium.com)
Needle: A DFA Based Regex Library That Compiles to JVM ByteCode (justinblank.com)