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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:51:49+00:00 2026-06-13T09:51:49+00:00

I grabbed some information from an RSS feed in XML. I need some help

  • 0

I grabbed some information from an RSS feed in XML. I need some help trying to get the values I need.

I’m hoping the regex can be fairly loose in case the tabs, newlines or spaces change, but, I’m pretty horrible at regex so I need some help.

Here’s the text I have:

\n\t\t\t\t\tMIDDAY DRAW DATE: \t\t\tFriday 10/26/12 \n\t\t\t\t\tMIDDAY WINNING NUMBER:\t\t\t6-9-6-0\n\t\t\t\t\tMIDDAY PAYOUT: \t$4,000.\n\t\t\t\t\tNEXT MIDDAY DRAW DATE: \tSaturday 10/27/12\n\t\t\t\t

Also, these \n\t, characters are all just plaintext.

I’d like to extract each of the values into separate variables, so:

MIDDAY DRAW DATE
MIDDAY WINNING NUMBER
MIDDAY PAYOUT
NEXT MIDDAY DRAW DATE

If anyone could help, that would be great.

  • 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-06-13T09:51:51+00:00Added an answer on June 13, 2026 at 9:51 am
    string.scan(/^\s*(.*?):\s*(.*?)\s*$/)
    

    will give you:

    [
      ["MIDDAY DRAW DATE", "Friday 10/26/12"],
      ["MIDDAY WINNING NUMBER", "6-9-6-0"],
      ["MIDDAY PAYOUT", "$4,000."],
      ["NEXT MIDDAY DRAW DATE", "Saturday 10/27/12"]
    ]
    

    If you just want the values without the keys, then

    string.scan(/:\s*(.*?)\s*$/)
    

    will give you:

    [
      ["Friday 10/26/12"],
      ["6-9-6-0"],
      ["$4,000."],
      ["Saturday 10/27/12"]
    ]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get some information from our database and then use it
I have grabbed some XML data using this piece of jQuery: $.ajax({ type: POST,
I am trying to compare a value which was grabbed using the get method
Hoping Paul McGuire may spot this and rescue me... I have grabbed the 'regex
I'm trying to incorporate some Gravatar functionality using its XML-RPC API in an iPhone
I've grabbed some Scala CSV parsing code from here: Use Scala parser combinator to
I need to convert bitmapData grabbed from movie clip to jpeg or png. Is
( First time programming in PHP. Had some help. Need a bit more. )
I am trying to get information on the likes of the page, since I
I need some help figuring out why the following scenario does not work. I'm

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.