regex

Tag

Cards List
#regex

Finding Bugs

matklad ↗ · 5d ago Cached

The blog post explores the effectiveness of generative testing versus unit tests in discovering bugs, using the Rust regex crate as a case study. It demonstrates how a custom fuzzer found multiple bugs and provides techniques for improving testing approaches.

0 favorites 0 likes
#regex

Labeled matches: why is this not in every regex engine?

Lobsters Hottest ↗ · 2026-09-17 Cached

The article explains the concept of labeled matches in regex for named entity recognition, compares its performance with spaCy's NER model, and showcases a tool called resharp that implements this feature efficiently.

0 favorites 0 likes
#regex

Can a regex match valid card numbers?

Lobsters Hottest ↗ · 2026-09-13 Cached

The article investigates if regex can match valid credit card numbers by constructing a Deterministic Finite Automaton (DFA) based on the Luhn algorithm, resulting in a massive but executable regex pattern.

0 favorites 0 likes
#regex

Soft-deprecating re.match()

Simon Willison's Blog ↗ · 2026-09-11 Cached

Python 3.15 soft deprecates the re.match() function, introducing re.prefixmatch() as a clearer alternative for pattern matching at the start of strings.

0 favorites 0 likes
#regex

Soft-deprecating re.match()

Lobsters Hottest ↗ · 2026-09-10 Cached

The blog post explains the soft deprecation of Python's re.match() function due to its surprising behavior and introduces a clearer alias, re.prefixmatch(), for Python 3.15.

0 favorites 0 likes
#regex

Building certgrep.sh: a free certificate transparency search engine

Lobsters Hottest ↗ · 2026-08-24 Cached

The article explains how certgrep.sh, a free certificate transparency search engine with regex support, was built to address limitations in querying CT logs at scale for security applications, detailing its technical design and public release.

0 favorites 0 likes
#regex

A single invisible character disabled one of our guardrails for three weeks, and the symptom looked exactly like model flakiness

Reddit r/AI_Agents ↗ · 2026-08-09

A developer recounts a three-week production bug where a regex with a literal backspace character silently disabled a language-detection guardrail, making the LLM appear flaky. The post highlights the need to instrument deterministic guardrails to distinguish them from model nondeterminism.

0 favorites 0 likes
#regex

@TrisH0x2A: Rob Pike wrote a complete regular expression matcher in about 30 lines of C it supports ^, ., *, and $ using only recur…

X AI KOLs Timeline ↗ · 2026-08-03 Cached

A tweet highlights Rob Pike's classic 30-line regular expression matcher in C, demonstrating recursion and pointer arithmetic as an introduction to regex engines.

0 favorites 0 likes
#regex

DOOM running on a regex engine

Lobsters Hottest ↗ · 2026-07-27 Cached

A developer demonstrates running the game DOOM using a regex engine as a computational substrate, performing millions of substitutions per frame.

0 favorites 0 likes
#regex

@charliermarsh: PSA: new `regex!` macro dropped in the latest release

X AI KOLs Following ↗ · 2026-07-20 Cached

A new `regex!` macro has been released in the latest update of the Rust regex library, enabling compile-time regex compilation.

0 favorites 0 likes
#regex

llama.cpp b9966 for sm-tensor

Reddit r/LocalLLaMA ↗ · 2026-07-11

llama.cpp b9966 introduces a fix for the -sm tensor mode that caches regex patterns, eliminating 29 recompilations per tensor per token on the decode thread, resulting in significantly reduced CPU overhead.

0 favorites 0 likes
#regex

Platform Support for GNU Extensions to Basic Regular Expressions

Lobsters Hottest ↗ · 2026-06-30 Cached

An article investigating platform support for GNU extensions to Basic Regular Expressions (BRE), specifically the `\+` operator, and finding it works on FreeBSD, macOS, and musl-based distributions like Chimera Linux.

0 favorites 0 likes
#regex

Regular expressions that work "everywhere"

Hacker News Top ↗ · 2026-06-25 Cached

The article discusses the challenges of regex portability across tools like sed, awk, grep, and Emacs, and provides a subset of regex features that work reliably across these environments.

0 favorites 0 likes
#regex

what 262,715 regex questions on stack overflow haven't answered (part 2)

Lobsters Hottest ↗ · 2026-06-09 Cached

A deep dive into the limitations of regex for parsing HTML, inspired by the famous Stack Overflow answer, discussing formal language theory and the power of industrial regex engines.

0 favorites 0 likes
#regex

Lies We Tell Ourselves About Email Addresses

Hacker News Top ↗ · 2026-06-08 Cached

A blog post debunking common misconceptions about validating email addresses, arguing against regex-based validation and advocating for simpler verification methods like sending a confirmation email.

0 favorites 0 likes
#regex

Regex Chess: A 2-ply minimax chess engine in 84,688 regular expressions

Hacker News Top ↗ · 2026-05-14 Cached

Nicholas Carlini's project implements a 2-ply minimax chess engine using 84,688 regular expressions, executed sequentially to play valid chess moves. The post explains the design of a regular expression computer that interprets instructions.

0 favorites 0 likes
#regex

what 262,715 regex questions on stack overflow haven't answered

Lobsters Hottest ↗ · 2026-05-13 Cached

The author analyzes 262,715 Stack Overflow questions to identify common regex pain points and demonstrates how their new regex engine, RE#, solves these issues using complement and intersection operations.

0 favorites 0 likes
#regex

TRE Python binding — ReDoS robustness demo

Simon Willison's Blog ↗ · 2026-05-04 Cached

A minimal Python ctypes binding to the TRE regex library demonstrates robust performance against ReDoS attacks, processing evil patterns on 10M-character inputs much faster than Python's re module.

0 favorites 0 likes
← Back to home

Submit Feedback