skpy/util.py
def userToId(url):
        """
        Extract the username from a contact URL.

        Matches addresses containing ``users/<user>`` or ``users/ME/contacts/<user>``.

        Args:
            url (str): Skype API URL

        Returns:
            str: extracted identifier
        """
        match = re.search(r"users(/ME/contacts)?/[0-9]+:([^/]+)", url)
        return match.group(2) if match else None
def userToId(url):
        match = re.search(r"users(/ME/contacts)?/[0-9]+:([^/]+)", url)
        return match.group(2) if match else None
def userToId ( url ) : match = re . search ( r"users(/ME/contacts)?/[0-9]+:([^/]+)" , url ) return match . group ( 2 ) if match else None
Extract the username from a contact URL.

        Matches addresses containing ``users/<user>`` or ``users/ME/contacts/<user>``.

        Args:
            url (str): Skype API URL

        Returns:
            str: extracted identifier
Extract the username from a contact URL .