<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_events(self, event_title, regex=False):
 """ Search for events with the provided title Args: event_title: The title of the event Returns: An event JSON object returned from the server with the following: { "meta":{ "limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 3 }, "objects": [{}, {}, etc] } or None if an error occurred. """

        regex_val = 0
        if regex:
            regex_val = 1
        r = requests.get('{0}/events/?api_key={1}&username={2}&c-title='
                         '{3}&regex={4}'.format(self.url, self.api_key,
                                                self.username, event_title,
                                                regex_val), verify=self.verify)
        if r.status_code == 200:
            json_obj = json.loads(r.text)
            return json_obj
        else:
            log.error('Non-200 status code from get_event: '
                      '{}'.format(r.status_code))
            return None