Next Regular Expression Mastery 12

Regex Metacharacters

/cat|dog/

             START            |c a t  
              |               |c a t           
               c              |c a t         Yes!
               a              <c|a t         Yes!
               t              <c a|t         Yes!
               END            <c a t>        Yes!



Next Copyright © 2002 M. J. Dominus