question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hashtag Pattern UTF (Feature)

See original GitHub issue

Thanks 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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hendraanggriancommented, Jun 8, 2017

@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.

0reactions
hendraanggriancommented, Jun 10, 2017

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! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found