human
Complete this python program:
def add_regexp_listener(dbapi_con, con_record):
assistant
#Here is the Python program you requested.

    """Add REGEXP function to sqlite connections.
    """
    def regexp(expr, item):
        reg = re.compile(expr)
        return (reg.search(unicode(item)) is not None)
    dbapi_con.create_function('regexp', 2, regexp)