KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need a regular expression that matches UTF-8 letters and digits, the dash sign ( - ) but doesn't match underscores ( _ ), I tried these silly attempts without success: ([\w-^_])+ ([\w^_]-?)+ (\w[^_]-?)+ The \w is shorthand for [A-Za-z0-9_] , but it also matches UTF-8 chars if I have the u modifier set. Can anyone help me out with this one?
Tags (comma-separated)
Save Edits
Cancel