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
322
votes
28 answers

How to handle anchor hash linking in AngularJS

Do any of you know how to nicely handle anchor hash linking in AngularJS? I have the following markup for a simple FAQ-page Question 1 Question 2 Question 3

Question…

Rasmus
  • 4,190
  • 7
  • 22
  • 32
156
votes
21 answers

Angular2 Routing with Hashtag to page anchor

I wish to add some links on my Angular2 page, that when click, will jump to specific positions within that page, like what normal hashtags do. So the links would be something like /users/123#userInfo /users/123#userPhoto /users/123#userLikes etc. I…
Stone
  • 1,811
  • 2
  • 14
  • 14
64
votes
4 answers

href="#" Going to Top of Page - Prevent?

I have a page with some jQuery functions. The HTML on the page looks like so: Open When I click the Open button a hidden panel slides out. The jQuery itself works great however when I click the button it also takes…
L84
  • 45,514
  • 58
  • 177
  • 257
39
votes
2 answers

How can we track hashtags with the new facebook hashtag implementation

Since Facebook introduced hashtags, I've been interested in finding out more about them. Can someone point me in the direction of possibly tracking the hashtags similar to how twitter allows us access to pull hashtag data via their API. I can count…
Shawn Mohammed
  • 391
  • 1
  • 3
  • 3
38
votes
1 answer

Database design for apps using "hashtags"

database design question here. Say we had a webapp or something that uses hashtags for 20-40 word notes. What is the best way to store a user's hashtags. For instance, if a user entered. "I like to have #lunch at #sizzler" we would store the…
ddoor
  • 5,819
  • 9
  • 34
  • 41
33
votes
9 answers

How do you include hashtags within Twitter share link text?

I'm writing a site with a custom tweet button that uses the www.twitter.com/share function, however the problem I am having is including hash '#' characters within the tweet text. For…
Splendiferous
  • 733
  • 2
  • 6
  • 17
33
votes
3 answers

NSAttributedString tail truncation in UILabel

I'm using ContextLabel to parse @ , # and URL's. This is the best solution i found, cause it sizes correctly and dont affect performance. It firstly parses string at input and than converts it to NSAttributedString and after this assigns it to…
Nikita Semenov
  • 2,111
  • 4
  • 18
  • 31
33
votes
3 answers

Using PHP replace regex with regex

I want to replace hash tags in a string with the same hash tag, but after adding a link to it Example: $text = "any word here related to #English must #be replaced." I want to replace each hashtag with #English --->
user1272589
  • 789
  • 1
  • 10
  • 25
32
votes
5 answers

How to account for accent characters for regex in Python?

I currently use re.findall to find and isolate words after the '#' character for hash tags in a string: hashtags = re.findall(r'#([A-Za-z0-9_]+)', str1) It searches str1 and finds all the hashtags. This works however it doesn't account for accented…
deadlock
  • 7,048
  • 14
  • 67
  • 115
30
votes
6 answers

Get all photos from Instagram which have a specific hashtag with PHP

I need to get some pictures which have a specific hashtag using PHP ? Any help will be awesome, or hint ?
Zeid Selimovic
  • 843
  • 3
  • 13
  • 19
23
votes
7 answers

Find the key hash for a signed app

I have signed my app and exported it to a folder on my desktop called app in this folder is my app itself and the keystore. How do i find the key hash that i can copy into the facebook developers page. i have openssl installed but cant seem to…
James
  • 486
  • 1
  • 9
  • 24
21
votes
6 answers

What characters are allowed in twitter hashtags?

In developing an iOS app containing a twitter client, I must allow for user generated hashtags (which may be created elsewhere within the app, not just in the tweet body). I would like to ensure any such hashtags are valid for twitter, so I would…
Karl White
  • 497
  • 1
  • 5
  • 13
18
votes
3 answers

Flutter: How to Keep TextField Focus on Submit?

I'm using https://pub.dev/packages/flutter_tags for a tag input. A tag is added to the array of tags by pressing submit on the keyboard and the TextInput Field cleared. Now I have the problem that with a submit the keyboard also closes. So you have…
Jakob Kühne
  • 915
  • 2
  • 12
  • 26
18
votes
3 answers

Implementing twitter-like hashtag on rails

I'm want to implement twitter-like hashtag on my app. Let's say I have user input to a text area "I'm coming to #london from #paris" then I want to build tag cloud of the hashtags. I'm thinking of using acts-as-taggable-on. So I find all of my…
tipbis
  • 357
  • 3
  • 9
18
votes
7 answers

Regular Expression to match #hashtag but not #hashtag; (with semicolon)

I have the current regular expression: /(?<=[\s>]|^)#(\w*[A-Za-z_]+\w*)/g Which I'm testing against the string: Here's a #hashtag and here is #not_a_tag; which should be different. Also testing: Mid#hash. #123 #!@£ and

#hash

For my purposes…
Wex
  • 4,434
  • 3
  • 33
  • 47
1
2 3
55 56