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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:19:47+00:00 2026-05-27T03:19:47+00:00

I have the following two strings and would like to search for when they

  • 0

I have the following two strings and would like to search for when they occur, I’m struggling as they are on different lines with a tab within the HTML file I’m using.

<span class="price">$17.95</span> 




    <span class="supersaver">

This is what I have tried so far, the value of the price can change, I have tried with just \s+ by itself and also with a combination \n+\t+ etc..

MatchCollection m1 = Regex.Matches(file, @"<span class=""price"">[$]\d+[.]\d+</span>\n+\t+<span class=""supersaver"">",
                    RegexOptions.Singleline);

I’ve added the quotes in…

  • 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-27T03:19:48+00:00Added an answer on May 27, 2026 at 3:19 am

    Try this:

    MatchCollection m1 = Regex.Matches(file, @"<span class=price>[$]\d+[.]\d+</span>[\s\n\t.]+<span class=supersaver>",
                    RegexOptions.Singleline);
    

    your solution had to have one or more spaces followed by tabs and no line, the regex above should match any of them.

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

Sidebar

Related Questions

I have the two following strings /signon/default.wl?rs=WLW11.10&vr=2.0&fn=_top /signon/default.wl?fn=%5Ftop&newdoor=true&rs=WLW11%2E10&vr=2%2 I would like to match all
Assume that i have two strings like the following. $sa = 12,20,45; $sb =
Suppose I have the following two strings containing regular expressions. How do I coalesce
i have two strings in a php i want to make following checks in
I have two columns in excel like the following a,apple a,bannana a,orange a,plum b,apple
I have the following string that I would like to Huffman-encode and store efficiently
Greetings, I have file with the following strings: string.Format({0},{1}, Having \Two\ On The Same
On the following two strings I'd like to create a regular expression that returns
I have several strings that look like the following: +H124005992014011/1527399999999I05Z +H7039700000001/$99999999I051 +K122005962050171/120911234C117 I need
I have two SQL tables with data that I would like to compare. The

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.