firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.24k stars 199 forks source link

Support for PHP bracket style delimiter pairs #1917

Closed codebymikey closed 1 year ago

codebymikey commented 1 year ago

Feature

It'd be nice if the tool supported PHP bracket style delimiter pairs

e.g.

(this [is] a (pattern))
{this [is] a (pattern)}
[this [is] a (pattern)]
<this [is] a (pattern)>

{[\{]}
{[}]}
{[\}\{]}

Inspired by this blog post and wanted to test its limitations out with the awesome Regex101 tool.

firasdib commented 1 year ago

I can see where this can be useful, but they require some additional work that I'm not prepared to implement. Primarily, they have to be balanced to not be throwing errors, i.e., the pattern {{} will throw an error and require the middle { to be escaped.

The benefits aren't that great to me, and as such, aren't worth the extra implementation cost.