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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:00:56+00:00 2026-06-04T21:00:56+00:00

Given the following line, how do I get the regex below from picking up

  • 0

Given the following line, how do I get the regex below from picking up the second set of SPAN tags. I want the zip, not the extend zip.

<TD width="20%">Zip Code: <B><SPAN class="TableBody clsBold">06902</SPAN>-<SPAN class="TableBody clsBold"> 2630</SPAN></B></TD></TR>

Regex:

<TD.+>([(\s)A-Za-z#]+:)\s*<B><SPAN class="TableBody.*">([\d\s#a-zA-Z$,]+)</SPAN>
  • 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-04T21:00:58+00:00Added an answer on June 4, 2026 at 9:00 pm

    <TD.+>([(\s)A-Za-z#]+:)\s*<B><SPAN class="TableBody.*?">([\d\s#a-zA-Z$,]+)</SPAN>

    Your regex was close, but the TableBody.* is greedy, and adding a ? after .* makes it lazy so it doesn’t grab the entire next portion of tags.

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

Sidebar

Related Questions

Given the following line: rebeka mecsek:/export/home5/users/rebeka; I'd like to get only the word mecsek
Given the following html: <ul id=search-results> <li> <h3>Result 1</h3> <span class=some-info>Tag line</span> </li> <li>
Given the following line: [aaaa bbbb cccc dddd] [decimal](18, 0) NULL, How would you
Executing the below code gives me the following exception on the last line: InvalidOperationException:
Given following Statment: String query = "Select * from T_spareParts where SparePartPK IN (?
Given the following HTML <b>demo</b> I want to save it to an SQL 2005
Given the following x86-64 AT&T assembly line: cmpl $0x7,0xc(%rsp) This is accessing the 12th
given the following line BigDecimal step = 10.0G**-1.0G groovy 1.7.5 returns the wrong 0.1000000000000000055511151231257827021181583404541015625
Given the following code: case class ChangeSet(field:String, from:Object, to:Object) private var changed:List[ChangeSet] = Nil
Given the following XML: <cfsavecontent variable=xml> <root> <parent> <child>I'm the first</child> <child>Second</child> <child>3rd</child> </parent>

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.