human
Complete the below
def _add_regexp_listener(dbapi_con, con_record):

    ''''Add REGEXP function to sqlite connections.'
    '''
 What is a the Python code you requested?
assistant
#Here is the Python code you requested.
    def regexp(expr, item):
        reg = re.compile(expr)
        return (reg.search(six.text_type(item)) is not None)
    dbapi_con.create_function('regexp', 2, regexp)