How did I miss this? Perl has had a /n regex flag for almost a decade (added in 5.22.0), which makes parentheses do the right thing. Which is grouping things without capturing, as in math. Capturing is explicit under /n.
[#]perl #regex
=> More informations about this toot | View the thread | More toots from barubary@infosec.exchange
=> View perl tag | View regex tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini