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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:32:54+00:00 2026-05-20T15:32:54+00:00

I have a table that I am trying to parse <tr>…</tr> <tr>…</tr> <tr>…</tr> <tr>…</tr>

  • 0

I have a table that I am trying to parse

<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>

each row is similarly formatted and I want to split them apart using regular expressions. I have tried everything I can think of but it always seems to take the whole contents as the match

I’ve tried stuff like this

$pattern = ':(<tr>.*</tr>):';
 preg_match_all( $pattern , $working, &$regs2  );

but it always maximally takes everything in one go rather than minimally taking it row by row.

This is probably pretty basic but I just can’t seen to get it.

  • 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-20T15:32:55+00:00Added an answer on May 20, 2026 at 3:32 pm

    In the regex tester I usually use, it seems to work normally. (http://regexpal.com/)
    If it seems like it’s too greedy, try using a ? after the * to calm it down a bit. If you’re not wanting the capture the <tr></tr> move the () to the inside, like <tr>(.*?)</tr>/

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

Sidebar

Related Questions

I'm trying to have a simple html table, that highlights a row as a
I am trying to parse a xml file that i have (using javascript DOM).
I have a rather complex Flat File that I'm trying to parse using SSIS.
I'm trying to normalize a mysql database.... I currently have a table that contains
I have a data.frame and I'm trying to create a frequency table that shows
I have a heap based table in MySQL that I am trying to update
I have a MySQL table containing a listing of events that I am trying
I'm trying to dynamically update a table of values using SocketStream. I have a
I am trying to parse an HTML table using lxml. While rows = outhtml.xpath('//tr/td/span[@class=boldred]/text()')
I have been trying to create a simple app that parse an entire channel

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.