regexhtml-tablehtml-content-extraction

How do I get content from a table using its ID with a regex?


I need to sort a html string so I get the content I need. Now I need to loop through the table rows in a table that have an ID. How do I do this with a regex?


Solution

  • Regular expressions cannot be used to parse HTML; HTML is not regular. Use a proper HTML parser library.