Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Why aren't Perl's patterns regular expressions?
Why aren't Perl's patterns regular expressions?
✍: Guest
Because Perl patterns have backreferences.
A regular expression by definition must be
able to determine the next state in the finite
automaton without requiring any extra memory
to keep around previous state. A pattern /([ab]+)c\1/
requires the state machine to remember old
states, and thus disqualifies such patterns
as being regular expressions in the classic sense
of the term.
2013-09-02, 1828👍, 0💬
Popular Posts:
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of ...
How do you override a defined macro? You can use the #undef preprocessor directive to undefine (over...
.NET INTERVIEW QUESTIONS - Where do you specify session state mode in ASP.NET ? The following code e...
What will be printed as the result of the operation below: main() { char *ptr = " Cisco Systems"; *p...
How can you enable automatic paging in DataGrid ? Following are the points to be done in order to en...