MMatchFerry
AI coding workspace

Zero-length regex matches

An empty match still has a position. MatchFerry gives regex work a Windows project context so you can inspect the scanner and discuss termination without rewriting the surrounding application.

● ● ●MatchFerry●
A concrete starting point · Zero-length regex matches ×
import re
def match_spans(pattern, text):
    return [match.span() for match in re.finditer(pattern, text)]
✳Collect regex match spans without losing zero-length matches.
✓ ChangesReview before applying ↗
Illustrative workspace
Connection
Base URL, credentials and a reachable server.
Project
Test an empty pattern, a lookahead and malformed syntax, ending the scan without manually reusing the same position.
Review before applying
Compare actual behavior with the expected result. If a check fails, investigate it before applying more changes.
Workflows

Zero-length regex matches

Workflows ↗
A concrete starting point
import re
def match_spans(pattern, text):
    return [match.span() for match in re.finditer(pattern, text)]
AI coding workspace

Your next change starts here.

Get the Windows app ↗