Next Regular Expression Mastery 63

Another Disaster

/^(\w+|::)*$/

        \w+             <a  b  c  d> !      No good
        \w+ \w+         <a  b  c><d> !      Also no good
        \w+ \w+         <a  b><c  d> !      Also no good
        \w+ \w+ \w+     <a  b><c><d> !      Still no good
        \w+ \w+         <a><b  c  d> !      Also no good
        \w+ \w+ \w+     <a><b  c><d> !      Still no good
        \w+ \w+ \w+     <a><b><c  d> !      Still no good
        \w+ \w+ \w+ \w+ <a><b><c><d> !      Guess what?
        Gives up.


Next Copyright © 2002 M. J. Dominus