mac_add

mac_add(string)

Extract Mac address from text. https://stackoverflow.com/questions/26891833/python-regex-extract-mac-addresses-from-string/2689237

Parameters

string: str Text selected to apply transformation.

Examples:

sentence="MAC ADDRESSES of this laptop - 00:24:17:b1:cc:cc .
Other details will be mentioned"
mac_add(sentence)
    >>> ['00:24:17:b1:cc:cc']