import re


def is_rid(rid):
    """
    Returns True if the specified string is a well-formatted OrientDB RID.
    """

    if isinstance(rid, str) and re.search('^\#\d+\:\d+$', rid):
        return True
    else:
        return False