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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:31:17+00:00 2026-05-15T21:31:17+00:00

please see code : $result = <b>Associated Names</b>&nbsp;&nbsp;[<a href=’http://www.examples.com/authors.html?act=change&id=6141&item=associated’><u>Edit</u></a>]</td> </tr> <tr> <td class=’text’ align=’left’>G&#12539;R<br

  • 0

please see code :

$result = "<b>Associated Names</b>&nbsp;&nbsp;[<a href='http://www.examples.com/authors.html?act=change&id=6141&item=associated'><u>Edit</u></a>]</td> 
        </tr> 
        <tr> 
          <td class='text' align='left'>G&#12539;R<br />G-R<br />         </td>"

preg_match_all("/<b>Associated Names.{10,100}<td class='text' align='left'>((.*<br \/>)*).*<\/td>/sU", $result, $assoc);
var_dump($assoc);
-----------------------------------------------------------
RESULT 
array
  0 => 
    array
      0 => string '<b>Associated Names</b></td>
        </tr>
        <tr>
          <td class='text' align='left'>G&#12539;R<br />G-R<br />         </td>' (length=135)
  1 => 
    array
      0 => string '' (length=0)
  2 => 
    array
      0 => string '' (length=0)

I want it return

array(
    1 => 
     array
      0 => string 'G&#12539;R',
    2 => 
     array
      0 => string> 'G-R'
)

it is a matter of parentheses ((.)) i want fix it, please help me

  • 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-15T21:31:17+00:00Added an answer on May 15, 2026 at 9:31 pm

    Please don’t try to parse HTML with regular expressions, it invokes the wrath of Zalgo.

    Try using the DOM and xpath to target the specific elements and attributes you are attempting to extract.

    (I’d provide an xpath example, but it’s still on my to-learn list… 🙂 )

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

Sidebar

Ask A Question

Stats

  • Questions 496k
  • Answers 496k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You can do exactly as you have done except you… May 16, 2026 at 11:47 am
  • Editorial Team
    Editorial Team added an answer Reflection breaks encapsulation in general. Any private member of any… May 16, 2026 at 11:47 am
  • Editorial Team
    Editorial Team added an answer The easy part is only allowing one user to access… May 16, 2026 at 11:47 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Please see the the following http://valogiannis.com/recent/ .I have a webpage and when user click
Please see the code here: http://pastie.org/1092106 When I call the method createPost on Blog,
Someone please see my code at this link for input taken from 2.2 mb
Please see the following code: def good(): foo[0] = 9 # why this foo
Please see the code below: #include <windows.h> int main(int argc, char* argv[]) { HANDLE
So Im trying to make an object dynamically, please see below code from my
Having a bit of an issue please see the following code: window.onload = function
I am experiencing something odd, please see below. Why is alert 1 outputting 0
I've been trying to highlight a search result in DataTable. First, I loop through
I encountered this issue on both Solaris and Linux, with tcl version 8.3/8.4 please

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.