On Mar 4, 2024, at 10:43 AM, Rich Salz <rich.salz@gmail.com> wrote:

On Mon, Mar 4, 2024 at 12:05 PM Will Senn <will.senn@gmail.com> wrote:
ranges bounded by regexes... who'd of thunk it?

Go read about the Rob Pike's sam editor (such as http://doc.cat-v.org/plan_9/4th_edition/papers/sam/) and prepare to have your mind blown :)

Also read Rob’s Structured Regular Expressions paper which has more details on using REs for describing the *structure* of a piece of text rather than its content: https://doc.cat-v.org/bell_labs/structural_regexps/se.pdf