find_domain

find_domain(string)

Search domains in the text.

Parameters

string: str Text selected to apply transformation.

A, B: str A is actual expression and B is non-consuming expression.

Examples:

sentence="WHO provides valid information about covid in their site who.int.
UNICEF supports disadvantageous childrens. know more in unicef.org"
find_domain(sentence)
    >>> ['who.int', 'unicef.org']