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 7556593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:53:52+00:00 2026-05-30T11:53:52+00:00

Firstly I’ve looked at a lot of posts on Stackoverflow but I don’t see

  • 0

Firstly I’ve looked at a lot of posts on Stackoverflow but I don’t see one which seems to be the definitive way. Someone always seems to find a flaw in the regex.

I already have retrieved my tweets and obviously they can contain any number of hashtags in each one.

If I have an array of possible hashtags that I want to find – [“#ENGLAND”,”#IRELAND”,”#wales”] etc.

What is a RELIABLE way to check if a tweet contains these hashtags. I don’t want to call the API again, I only want to check my existing tweets, as I’m clicking on buttons to change the filtering on the fly, want to avoid rate limit if they keep clicking around for ages.

EDIT:

Example: Here is a tweet that contains #ENGLAND and #someothertag

I want to search all the tweets and just show the tweets that CONTAIN one or more of my array of tags, I already cache the tweets, I don’t want to make a call containing any tags just filter the existing results!

  • 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-30T11:53:53+00:00Added an answer on May 30, 2026 at 11:53 am

    You could store the hashtags from the entities on the element, for instance

    <div class='tweet' data-hashtags='england ireland'>some_tweet</div>
    

    And filter like this when someone clicks your button:

    $('div.tweet').hide();
    $('div.tweet[data-hashtags~="ireland"]').show();
    

    It’s obviously greatly simplified, but the general approach should help you avoid having to parse out the tags yourself

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, how can I see which branch I am currently on? I typed git
Firstly, very sorry if this is not a true stackoverflow question. But it's something
Firstly sorry if this is a common question but I couldn't find anything on
Firstly, this is going to sound like homework, but it ain't. Just a problem
Firstly, I have search Stack Overflow for the answer, but I have not found
Firstly, apologies if I make a lot of mistakes in best VBA practice. I've
Firstly I realise that this is a familiar question, it seems to pop up
Firstly, I would like to say that I don't mean the full path, what
Firstly, wikipedia defines a Control Panel Applet as: graphical user interface which allows users
Firstly, there have some tag links in my main page. click each one, post

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.