> a better solution might even exist outside of perl.
Note that other languages might have similar regex syntax to Perl, but the implementation is definitely different, so profiling/benchmarking it doesn't really help if you're going to use the regex in Perl.