Next Regular Expression Mastery 7

Regex Program Example

/ab/

             START            |s q u a b
              a               |s q u a b              Nope
             START             s|q u a b
              a                s|q u a b              Nope
             START             s q|u a b
              a                s q|u a b              Nope
             START             s q u|a b
              a                s q u|a b              Yes!
              b                s q u<a|b              Yes!
              END              s q u<a b>             Yes!



Next Copyright © 2002 M. J. Dominus