Next Regular Expression Mastery 40

Anchors

/ab$/

             START             |a b s i n t h e
             ab                |a b s i n t h e       Yes!
             $                 <a b|s i n t h e       Nope
             START              a|b s i n t h e
             ab                 a|b s i n t h e       Nope
             START              a b|s i n t h e
             ab                 a b|s i n t h e       Nope
             START              a b s|i n t h e
             ab                 a b s|i n t h e       Nope

   ...



Next Copyright © 2002 M. J. Dominus