Anahita Project

Anahita Project's Notes

Rastin Mehr

Rastin Mehr

July 16 2014
How is this for the #hashtag regex and how would you improve it?
Umesh liked this
Looks pretty good to me, Rastin. Though, it doesn't recognize the hashtag starting with a number. Do hashtags have to start with a letter?
I know twitter doesn't recognize a hashtag that starts with a number.
actually a better one is: /#([^0-9_\s\W][\p{L}0-9]{2,})/u

Powered by Anahita