That's just screaming for factorisation. ;-)
Or, to possibly make the abbreviation stand out a bit more at the expense of some readability:/^a(|b(|b(|r(|e(|v(|i(|a(|t(|i(|o(|n)))))))))))$/
/^a(b(b(r(e(v(i(a(t(i(o(n|)|)|)|)|)|)|)|)|)|)|)$/
(The non-toy solution probably involves Text::Abbrev.)
In reply to Re^2: Abbreviation regex?
by Tanktalus
in thread Abbreviation regex?
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |