I need a Hashtag Regular Expression for my forum so I can use multiple words in a hashtag and separate them with "dash hyphen" like "-". Because currently when you use "_" (Underline) in a hashtag, it turn the word to "Italic".
In my language there is "Space" between words and for multiple words i have to use some character for separating words in hashtag.
For example: #I-need-to-do-this
Or in my own language it is like: #من-به-این-هشتگ-نیاز-دارم
So I can't use "Underline", well i have to use dash instead of that!
Currently my regex is :
/((?!([\S])).|^)#(\S+)\b/g , How can i change this to support "dash hyphen" in hashtag and use multiple words in one hashtag?