in reply to Re^2: A tidier regex ?
in thread A tidier regex ?

\w does match underscore.

Replies are listed 'Best First'.
Re^4: A tidier regex ?
by Anonymous Monk on Sep 14, 2010 at 14:58 UTC
    It allows me to put CDC_ABC as a valid option, which I wish to reject. When I was looking for CDC_ABC_ABC for example.
      I specified the purpose of each of my solutions, and it wasn't validation in either case.