Next | Perl Regex Engine | 5 |
Like a Perl program, a regex has a compile phase and a run phase
The regex is compiled into an internal bytecode format
Normally each regex is compiled once with the rest of the program
Each time Perl needs to match a string, the bytecode is executed
regcomp.c (4546 lines) is the compiler (and optimizer)
regexec.c (4058 lines) is the executer
Next | Copyright © 2001 M. J. Dominus |