Next Regular Expression Mastery 13

Regex Metacharacters

/cat|dog/

             START            |d o g  
              |               |d o g           
               c              |d o g         Nope.
               d              |d o g         Yes!
               o              <d|o g         Yes!
               g              <d o|g         Yes!
               END            <d o g>        Yes!



Next Copyright © 2002 M. J. Dominus