It tries to find any occurrence of TLD in given text. If TLD is found itstarts from that position to expand boundaries to both sides searchingfor "stop character" (usually whitespace, comma, single or doublequote).

NOTE: List of TLDs is downloaded from iana.org to keep you up to date with new TLDs.

Since TLD can be not only shortcut but also some meaningful word we might see "false matches" when we are searchingfor URL in some HTML pages. The false match can occur for example in css or JS when you are referring to HTML itemusing its classes.

If this HTML snippet is on the input of ``urlextract.find_urls()`` it will return ``a.bold.name`` as an URL.Behavior of urlextract is correct, because ``.name`` is valid TLD and urlextract just see that there is ``bold.name``valid domain name and ``p`` is valid sub-domain.