Next Regular Expression Mastery 38

Anchors

/^ab/

             START             |a b s i n t h e
             ^                 |a b s i n t h e       Yes!
             a                 |a b s i n t h e       Yes!
             b                 <a|b s i n t h e       Yes!
             END               <a b>s i n t h e       Yes!

             START             |a b s i n t h e
             ^                 |a b s i n t h e       Yes!
             ab                |a b s i n t h e       Yes!
             END               <a b>s i n t h e       Yes!



Next Copyright © 2002 M. J. Dominus