Hacker News with Generative AI: Regular Expressions

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 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 but it's 6,500 regular expressions in Vim (twitter.com)
A minimax chess engine in regular expressions (carlini.com)
Can chess, with regular expressions? Yes. Can chess, with regular expressions.
Stripping Emoji from a String (brettterpstra.com)
I often need to strip emoji from strings to prevent them from messing up other handling. I’ve been compiling regular expressions and I think I finally have all the bases covered.
Show HN: Non-backtracking, Unicode aware regular expression library in C89 (github.com/mnurzia)
Compact, non-backtracking, unicode aware regular expressions in C89
Regular Expressions which query an Oracle (arxiv.org)
SMORE (Chen et al., 2023) recently proposed the concept of semantic regular expressions that extend the classical formalism with a primitive to query external oracles such as databases and large language models (LLMs).
S/Sed/Ed (aartaka.me)
This post starts with holding a grudge: Posix regular expressions are extremely hard to get wrong? Uh... Have you really written any? Sounds like you might not really know either Posix or PCRE. u/bigmell in reply to 5 (Wrong) Regex To Parse Parentheses
Demystifying the regular expression that checks if a number is prime (2016) (illya.sh)
A while back I was researching the most efficient way to check if a number is prime. This lead me to find the following piece of code:
Implementing Regular Expressions in TypeScript Types (Badly) (skalt.github.io)
This is a cautionary tale about how I ended up writing a (bad) regular expression parser and evaluator in pure TypeScript types.
Rosie pattern language: modern text pattern matching to replace regex (rosie-lang.org)
In brief: RPL is an alternative to regex, providing a better syntax, unit tests, and packages of patterns, among other benefits.
HTTP: , FTP:, and Dict:? (shkspr.mobi)
I went for a spelunk0 through an ancient codebase a few weeks ago which contained a curious regex that I just couldn't grok1.
Ask HN: How did you learn Regex? (ycombinator.com)
A Better Regex Experience (polar.sh)
Regular Expression Matching with a Trigram Index (2012) (swtch.com)
Regular expression functions in Excel (microsoft365.com)
Regular expression matching can be simple and fast (2007) (swtch.com)
Is there a regular expression to detect a valid regular expression? (2008) (stackoverflow.com)
The dangers of single line regular expressions (molnar.io)
Show HN: Hate Regex? This Free Tool Writes It for You (rgx.tools)