Soft-deprecating re.match()
Summary
Python 3.15 soft deprecates the re.match() function, introducing re.prefixmatch() as a clearer alternative for pattern matching at the start of strings.
View Cached Full Text
Cached at: 09/11/26, 06:19 PM
Similar Articles
Soft-deprecating re.match()
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.
TRE Python binding — ReDoS robustness demo
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.
@yuntiandeng: Totally agree. Replaced the regex with ProgramAsWeights (and it actually works): import programasweights as paw fn = pa…
A tweet endorsing ProgramAsWeights as a working replacement for regex, demonstrating an email validation function compiled from natural language.
@charliermarsh: PSA: new `regex!` macro dropped in the latest release
A new `regex!` macro has been released in the latest update of the Rust regex library, enabling compile-time regex compilation.
Regular expressions that work "everywhere"
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.