Questions tagged [hashtag]

A hashtag is an in-text label that classifies content into a specific category, first popularized by Twitter users and now common in social media.

A hashtag is a hash sign (#) followed by a string which is usually alphanumeric, without spaces, punctuation or capitalization. It is used to classify the text in which it is contained and allow searching for related content.

Because of its adoption and usage by a large user base, it has been used in the filtering, searching and sorting of tweets and posts on other supporting social media platforms.

Examples

  • #StackOverflow
  • #StackExchange
  • #1337code
834 questions
7
votes
4 answers

How do I extract words starting with a hash tag (#) from a string into an array

I have a string that has hash tags in it and I'm trying to pull the tags out I think i'm pretty close but getting a multi-dimensional array with the same results $string = "this is #a string with #some sweet #hash tags"; …
Brian
  • 4,328
  • 13
  • 58
  • 103
6
votes
1 answer

How does IIS URL Rewrite handle # anchor tags

I'm struggling to find any information on how best to handle URLs with anchor tags, like the #foo in www.example.com/index.html#foo Our current situation is trying to use a Rewrite map for a URL with an anchor tag, but it is being trumped by another…
Spongeboy
  • 2,232
  • 3
  • 28
  • 37
6
votes
3 answers

How do I redirect to a mobile site but keep the hash tag?

I'm looking to have it so that when a user loads our page it checks to see if they're on a mobile device and then it'll redirect them to a mobile version of our site, but keep the original hash tag from the link they followed. I've tried setting the…
Cory Schulz
  • 319
  • 5
  • 15
6
votes
4 answers

Twitter/Facebook @mention functionality with jQuery

I'm trying to implement an @mention system in an application I'm building and am running into some difficulties. My initial approach is this: Create two hidden inputs after the textarea/input being @mentionified. The first will hold the text being…
Marc
  • 3,812
  • 8
  • 37
  • 61
6
votes
1 answer

embed twitter hashtag feed in a web page

I want to embed a twitter hastag feed in my web page, as a widget ( like the attached picture ) can any one help?
Namoat
  • 77
  • 1
  • 4
6
votes
5 answers

How to hashtag value in different colour in EditText?

I am writing some text in EditText when i write "#data" its colour should be changed but doesn't change how can i do. Please check the below EditText which i have used
Salman
  • 159
  • 1
  • 2
  • 7
6
votes
1 answer

Opening modal with hash

I want to open a modal with hash (example: www.example.com/#example.) This is my code below but the modal not showing. Thanks for your answer and I appreciate it. $(document).ready(function() { $('.popup').click(openModalPopupClick); …
6
votes
5 answers

How could spacy tokenize hashtag as a whole?

In a sentence containing hashtags, such as a tweet, spacy's tokenizer splits hashtags into two tokens: import spacy nlp = spacy.load('en') doc = nlp(u'This is a #sentence.') [t for t in doc] output: [This, is, a, #, sentence, .] I'd like to have…
jmague
  • 572
  • 1
  • 6
  • 13
6
votes
3 answers

Android - Add Margin for SpannableStringBuilder using ReplacementSpan

I'm trying to format Hashtags inside a TextView/EditText (Say like Chips mentioned in the Material Design Specs). I'm able to format the background using ReplacementSpan. But the problem is that I'm not able to increase the line spacing in the…
PsyGik
  • 3,535
  • 1
  • 27
  • 44
6
votes
4 answers

Retrieve specific hash tag's value from url

In raw Javascript, how would one go about checking that a specific hash tag exists in a url, then grab the value? Example: http://www.example.com/index.html#hashtag1=value1&#hashtag2=value2 I want to be able to grab the value of either hashtag1 or…
mike
  • 8,041
  • 19
  • 53
  • 68
6
votes
1 answer

Which characters are allowed in hashtags

I am having a really hard time figuring out a regular expression (in C#) to validate hashtags. \w simply isn't enough as special characters are missing (ä, ö, ø, æ, å for starters, but also a lot of other foreign characters. I need to support ALL…
beruic
  • 5,517
  • 3
  • 35
  • 59
6
votes
1 answer

Sharing link with a preset HASHTAG

I 'm looking for a way to create a button that allow to share a URL with a hashtag chosen by me. Is that possible ? Thank you in advance.
nnrfffrfrfrrf
  • 79
  • 1
  • 2
6
votes
4 answers

Regex for matching HashTags in any language

I have a field in my application where users can enter a hashtag. I want to validate their entry and make sure they enter what would be a proper HashTag. It can be in any language and it should NOT precede with the # sign. I am writing in…
AlexD
  • 4,062
  • 5
  • 38
  • 65
6
votes
2 answers

Get all hashtags from EditText

I have an EdiText. User can mention hashtags in it. I want to get those hashtags and add them to an ArrayList. How can I get those hashtags from EdiText. Suppose my edittxtmsg contains #Stackoverflow slove me #hashtag #problem I want these hashtags:…
Sree Reddy Menon
  • 1,301
  • 13
  • 23
6
votes
1 answer

Android - can i open Instagram app on given hashtag?

I'm working on an app that i have already published in the App Store, now making an Android build. In the iOS i simply use an uri like this one: instagram://tag?name=myHashtag It opens Instagram app, showing a grid of photos corelated with the…
cyborg86pl
  • 2,597
  • 2
  • 26
  • 43