In this chapter, we will use JavaScript to parse an HTML document and process the query string of a URL.
Parsing HTML Tags
Exercise 1: Suppose an HTML document is given. Extract all the <td> tags using a regular expression, and print their content to the console. You can assume any content including newline characters inside the <td> tags. The <td> tags may have attributes.
Example Input: