3 ms·
The possibility of exponential runtimes can only be eliminated by limiting the input language in ways that Perl Regular Expressions do not [i.e. eliminating the
by brudgers 11y ago
The possibility of exponential runtimes can only be eliminated by limiting the input language in ways that Perl Regular Expressions do not [i.e. eliminating the NP-hard languages]. Swapping out the engine for one that does not bog down means reducing the expressive power. See this answer on SE-Computer Science: http://cs.stackexchange.com/a/46837 http://cs.stackexchange.com/a/46837 or this discussion on lambda-the-ultimate: http://lambda-the-ultimate.org/node/2961 http://lambda-the-ultimate.org/node/2961
- eru 11y ago> [i.e. eliminating the NP-hard languages] You have to eliminate even harsher. Prime factoring is also expressible in Perl regular expression.