SyntaxFix
Write A Post
Hire A Developer
Questions
I know the question is Old and already answered but this can also be a solution
\b[\w-]+$
and I checked these two URLs
http://www.youtube.com/watch?v=Ahg6qcgoay4 https://www.youtube.com/watch?v=22hUHCr-Tos
DEMO