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

  • Home
  • SEARCH
  • 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 757999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:25:40+00:00 2026-05-14T15:25:40+00:00

Provided a url, within a string of text (tweet) such as Check out my

  • 0

Provided a url, within a string of text (tweet) such as

“Check out my twitpic http://twitpic.com/1876544594 its awesome”

I need a Rails regex that will return 18744594, the id of this particular twitpic…

This question has been asked here but was for PHP, and I need it for Rails.

I would also be able to pull the name of the site, so the text between http:// and .com “twitpic”

  • 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-14T15:25:41+00:00Added an answer on May 14, 2026 at 3:25 pm

    To extract 18744594 only

    /http:\/\/twitpic\.com\/(\d+)/
    

    To extract twitpic and 18744594

    /http:\/\/(twitpic)\.com\/(\d+)/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rails server running on URL http://example.com:1234 I want to provide the
Suppose I have a website hosted at the url: http://www.mysite.com/ Say this is hosted
I have an arbitrary XML document provided by a URL. I also have an
I would like to know the meaning of the URL's provided by google for
Provide an example for the pseudo-regex: Match every url except those from example.com and
I have types provided in a library I cant modify, such as this: namespace
Is it possible to sign out from a relying party from within the Identity
I recently was provided an excellent answer on how to handle extracting my URL
I am using Spring mvc within url rewrite tucky to have extension less Urls.
Does Facebook provide a URL the user can access that will take him to

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.