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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:22:18+00:00 2026-05-12T21:22:18+00:00

I am very weak with Regex and need help. Input looks like the following:

  • 0

I am very weak with Regex and need help. Input looks like the following:

<span> 10/28 &nbsp;&nbsp;Currency:&nbsp;USD

Desired output is 10/28.

I need to get all text between the <span> and “Currency:” that are numbers, a “/” character, or a “:” character. No spaces.

Can you help? Thanks.

  • 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-12T21:22:18+00:00Added an answer on May 12, 2026 at 9:22 pm

    Updated: What you’re describing is three parts.

    What we do want is one or more characters that are digits, forward slash, and :: [0-9/:]* (the asterisk means “zero or more instances”). Surrounded by:

    • <span>(optional stuff we don't want) is represented as: <span>[^0-9/:]*
    • (optional stuff we don't want)Currency is: [^0-9/:]*Currency

    (The ^ means “not”) – so this will essentially match any number of characters which is not the bits we want, including things like &nbsp;

    In c#:

    string pattern = @"<span>[^0-9/:]*(?<value>[0-9/:]*)[^0-9/:]*Currency";
    Match match = Regex.Match(input, pattern, RegexOptions.SingleLine | RegexOptions.IgnoreCase);
    string output = match.Groups["value"].Value;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am very weak at join and i need to know that how can
Very simply put, I have the following code snippet: FILE* test = fopen(C:\\core.u, w);
Very direct question, i need to know if its possible and maybe where to
My javascript is very weak. Is it possible to modify the same code below
i am very weak in pointers , blame it on not having access to
Basically im giving a very weak shot at trying to centralize memory management. Anyways,
i want to install oracle 11g on a very weak computer for learning. what
I will say that i am very weak in my knowledge of regular expressions...
Very simply put: I have a class that consists mostly of static public members,
Very often when working on an ASP.NET web site, the options View Code and

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.