Task: Extract HTML Title Content Using Regex
Task: Extract HTML Title Content Using Regex: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that uses regular expressions to extract the title content from HTML pages. The script should use a regex capture group to directly extract the text between <title and </title tags…
The task
Write a Python script that uses regular expressions to extract the title content from HTML pages. The script should use a regex capture group to directly extract the text between `<title>` and `</title>` tags, without needing to manually strip the tags afterwards.
Part of PrimeIntellect/Terminal-Lego-15k.