Hashtag Pattern UTF (Feature)
See original GitHub issueThanks you very much for this project.
I was taking a look into your implementation and i think that you could update the Hashtag regular expression to accept non english words etc…
Example:
#(\w+)
fails with #Mañana
Solution:
([##]+)([0-9A-Z_]*[A-Z_]+[a-z0-9_üÀ-ÖØ-öø-ÿ]*)
Hope to help you work on it soon. Jeff.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Parse text for hashtags and replace with links using php
This will work with UTF-8 encoding texts and will show # (hash) before tags in content preg_replace('/(\#)([^\s]+)/', ' <a href="tag/$2">#$2</a> ', $content);.
Read more >Extract Information With Regular Expression - OpenClassrooms
Extract Hashtags · # the source text · text · # 1. import the regex library · import · # 2. define the...
Read more >UTF-8 characters in hashtags queries - Twitter API v2
Hi, there might be UTF-8 characters in hashtags, for example tag åland. Is it possible to use all UTF-8 characters in APIv2 queries...
Read more >MQTT Topics, Wildcards, & Best Practices - HiveMQ
A ten-part blog series on the core features and concepts of the MQTT protocol. In this post, we focus on MQTT topics and...
Read more >Counting characters | Docs | Twitter Developer Platform
Counting characters when composing Tweets. This page describes how characters are treated when composing Tweets and across the Twitter API.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jeffersonlicet You’re very much welcome. Thanks for the regex input, I will need to create some instrument tests to make sure that pattern will work on any case.
In the meantime, do you have more test cases? I’m sorry I’m not familiar with Spanish naming customs.
Sorry for late response, version 0.12.0 has been published with that regex pattern. The patterns are also customizable now with static methods.
Thank you for your help and let me know if you have any other improvement or fix! 😃