[tpm] Dumb regex question

Madison Kelly linux at alteeve.com
Tue Aug 21 09:15:45 PDT 2007


For the life of me, I can't seem to get a simple regex working...

All I want is to be able to match a word-character string that may have 
a hyphen in it.

So:

mizu-bu		# should match
alteeve		# should match
m!zu-bu		# should not match
a|teeve		# should not match

Someone mind hitting me with a clue-stick? Google and perldoc have 
failed me so far (though I readily admit fault here) ...

Thanks!

Madi


More information about the toronto-pm mailing list