Next Regular Expression Mastery 41

Anchors

/ab$/

             START             |g r a b 
             ab                |g r a b              Nope
             START              g|r a b 
             ab                 g|r a b              Nope
             START              g r|a b 
             ab                 g r|a b              Yes!
             $                  g r<a b|             Yes!
             END                g r<a b>             Yes!



Next Copyright © 2002 M. J. Dominus