Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4530832
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T13:50:37+00:00 2026-05-21T13:50:37+00:00

I recently built a small app for my site that allows my users to

  • 0

I recently built a small app for my site that allows my users to display their tweets.
I am wondering if their is a way with jQuery or Javascript to detect or find stuff like hashtags and http://’s ?

A simple example of a sentence might be:

The quick #brown fox jumps over the #lazy dog
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T13:50:38+00:00Added an answer on May 21, 2026 at 1:50 pm

    You might give twitter-text-js a try. It can do things like auto link @mentions, #hashtags, and urls.

    twttr.txt.autoLink('A @screen_name, #hashtag, and url: http://twitter.com autolinked')
    

    Will result in:

    "A @<a class="tweet-url username" data-screen-name="screen_name" href="http://twitter.com/screen_name" rel="nofollow">screen_name</a>, <a href="http://twitter.com/search?q=%23hashtag" title="#hashtag" class="tweet-url hashtag" rel="nofollow">#hashtag</a>, and url: <a href="http://twitter.com" rel="nofollow" >http://twitter.com</a> autolinked"
    

    Or finding the indices of #hashtags:

    twttr.txt.extractHashtagsWithIndices('A @screen_name, #hashtag, and url: http://twitter.com autolinked')
    

    will result in:

    [{
      hashtag: "hashtag",
      indices: [ 16, 24 ]
    }]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently released a new version of my iPhone app that was built for
I recently built a program that parses a remote file from \some_server\c$\directory\file.xls and it
I am writing a small .NET Windows Forms app, and I use the built-in
I recently started using scons to build several small cross-platform projects. One of these
I recently built an API and was often asked to replace the StringCollections I
We recently went into private beta on our flagship product and had a small
I have an iPhone app that's been in development for about 2 weeks. We
I have a fairly small solution that includes a WPF windows application. It builds
I've got build server running CruiseControl.NET and recently it started throwing this error on
I've recently have a reason to include into our build script the creation of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.