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
18
votes
5 answers

How do I navigate to hashtag after page load?

I want to do the inverse of what I've been finding so far. I'm setting a lot of heights with js and I want to navigate to the hashtag in the url after the page has loaded. I'm guessing this is simple but I'm not seeing the obvious answer... for an…
brunam
  • 825
  • 2
  • 14
  • 26
17
votes
3 answers

Twitter: Hash tag search query

I am trying to search twitter tweets by a given hashtag. I am trying to get the correct http query, but I have no idea which one. I've tried a few but i can't find the correct one. I should use the http://api.twitter.com/1/... link. I already have a…
Tjekkles
  • 5,352
  • 8
  • 36
  • 53
17
votes
3 answers

AngularJS 1.1.5 - automatically adding hash tag to URLs

Does anyone know why version 1.1.5 automatically adds a hashtag to your urls, and how to turn this off? IMO this is ugly looking. It happens whenever you have a url that doesn't end in a forward slash. (I'm not using routes or anything like…
Kevin Beal
  • 10,500
  • 12
  • 66
  • 92
16
votes
3 answers

Twitter search query both by @user and #hashtag

I'd like to embed twitter widget which will contain search results with both hashtag and user account. '#hashtag OR @username' doesn't work
Mark Vital
  • 960
  • 3
  • 14
  • 25
14
votes
7 answers

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

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 metadata I've spent what I consider an unreasonable amount of time trying to find…
dethSwatch
  • 1,152
  • 1
  • 10
  • 18
11
votes
1 answer

Javascript (preferably Jquery) that will mimic behavior of hashtags

Possible Duplicate: jQuery scroll To Element Basically, I want my user to be instantly scroll down to a specific anchor tag just like they do with a hashtag. However, I can't use a hashtag and therefore want to scroll them down using javascript…
Spencer
  • 21,348
  • 34
  • 85
  • 121
11
votes
4 answers

How do I scroll an overflowed div to a certain hashtag (anchor)?

On my webpage I have an overflowed div (i.e. with the vertical scrollbar). Inside the div, I have anchors with ids. When I put one of these ids in the URL (mypage.html#id), I want the div, not the page, to scroll to that anchor. How do I do that,…
user323094
  • 3,643
  • 4
  • 21
  • 30
11
votes
6 answers

An elegant way to get hashtags out of a string in Python?

I'm looking for a clean way to get a set (list, array, whatever) of words starting with # inside a given string. In C#, I would write var hashtags = input .Split (' ') .Where (s => s[0] == '#') .Select (s => s.Substring (1)) …
Dan Abramov
  • 264,556
  • 84
  • 409
  • 511
11
votes
6 answers

What does #id in input tag mean?

From this Angular.io tutorial, I show: where I do not understand this: #searchBox. Can someone explain? The hashtag reminds me of the jQuery selector for ids, but I am not quite…
gsamaras
  • 71,951
  • 46
  • 188
  • 305
11
votes
7 answers

Extracting hashtags out of a string.

If I had a string as such var comment = "Mmmm #yummy #donut at #CZ" How can I get a list of hash tags that exist in the string variable? I tried using JavaScript split() method but I have to keep splitting all strings created from the initial…
codeBarer
  • 2,238
  • 7
  • 44
  • 75
11
votes
3 answers

Regex for a (twitter-like) hashtag that allows non-ASCII characters

I want a regex to match a simple hashtag like that in twitter (e.g. #someword). I want it also to recognize non standard characters (like those in Spanish, Hebrew or Chinese). This was my initial regex: (^|\s|\b)(#(\w+))\b --> but it doesn't…
limlim
  • 3,115
  • 2
  • 34
  • 46
11
votes
1 answer

How to trigger a Chrome extension, content-script for a given hash in the URL?

My matches scheme: "content_scripts" : [ { "matches" : [ "https://stackoverflow.com/questions#epic*" ], "js" : ["silly.js"] } ], So if the user went to a webpage (like https://stackoverflow.com/questions) then added #epic it would…
Alex
  • 1,035
  • 3
  • 16
  • 31
10
votes
3 answers

Should AJAX use hashtag /#!/ or not?

I've made a webpage that has the URL-form http://www.example.com/module/content It's a very dynamic webpage, actually it is a web app. To make it as responsive as possible, I want to use AJAX instead of normal page requests. This is also enabling me…
Student of Hogwarts
  • 1,108
  • 3
  • 14
  • 28
9
votes
1 answer

Internet Explorer ignores Hashtag in URL

I've got the following URL Rewrite Rules set up:
Dennis Röttger
  • 1,975
  • 6
  • 32
  • 51
9
votes
4 answers

Regex to conditionally replace Twitter hashtags with hyperlinks

I'm writing a small PHP script to grab the latest half dozen Twitter status updates from a user feed and format them for display on a webpage. As part of this I need a regex replace to rewrite hashtags as hyperlinks to search.twitter.com. Initially…
foxsoup
  • 306
  • 1
  • 3
  • 9
1
2
3
55 56