_Actual_ Twitter format for hashtags? Not your regex, not his code— the actual one?

前端 未结 6 607
野趣味
野趣味 2021-02-07 14:27

Update: Use Twitter\'s Entities if you can- they figured it out for you as well as other items. My case is that I just have the tweet without entities and all the extra metadat

6条回答
  •  一向
    一向 (楼主)
    2021-02-07 15:03

    this is what I use, the closest i get:

    /#(\w*[0-9a-zA-Z]+\w*[0-9a-zA-Z])/g
    

    link of the hashtag Regex to test

提交回复
热议问题