def parse_handle()

in social-media/gather-data.py [0:0]


def parse_handle(txt):
    import re

    re1 = '(@)'   # Single '@' character
    # any sequence that contains alphanumeric characters or underscore.
    re3 = '((?:[a-z0-9_]*))'

    rg = re.compile(re1 + re3, re.IGNORECASE)
    m = rg.search(txt)
    if m:
        return m.group(2)