I need a regular expression that matches UTF-8 letters and digits, the dash sign (-) but doesn\'t match underscores (_), I tried these silly attemp
-
_
I am not sure which language you use, but in PERL you can simply write: [[:alnum:]-]+ when the correct locale is set.