Both Perl and Python use backtracking regex engines and are thus susceptible to similar problems as discussed in the OP.
Both Perl and Python use backtracking regex engines and are thus susceptible to similar problems as discussed in the OP.