Unless I am mistaken, your oneliner will fail if given
}}}{{{as input. It will report a false positive. It is also not RDP, although you know this ;).
While I will not claim that regex RDP is pretty (complex parsing rarely is), it is possible, and Programming Perl discusses it in some minimal detail.
In reply to Re^4: Perl Parsing Power
by protist
in thread Perl Parsing Power
by protist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |