Skip to content

Commit 8c1f976

Browse files
committed
fix: use correct admonition category
Addressing #1023 (comment)
1 parent 7702d1e commit 8c1f976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/academy/webscraping/scraping_basics_python/05_parsing_html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ While possible, we can see that processing HTML with [standard string methods](h
6969

7070
In fact HTML can be so complex that even [regular expressions](https://docs.python.org/3/library/re.html) aren't able to process it reliably. To work with HTML we need a robust tool dedicated for the task.
7171

72-
:::tip Why regex can't parse HTML
72+
:::info Why regex can't parse HTML
7373

7474
While [Bobince's infamous StackOverflow answer](https://stackoverflow.com/a/1732454/325365) is funny, it doesn't go much into explaining. In formal language theory, HTML's hierarchical and nested structure makes it a [context-free language](https://en.wikipedia.org/wiki/Context-free_language). Regular expressions match patterns in [regular languages](https://en.wikipedia.org/wiki/Regular_language), which are much simpler. This difference makes it hard for a regex to handle HTML's nested tags. HTML's complex syntax rules and various edge cases also add to the difficulty.
7575

0 commit comments

Comments
 (0)