'Checks that req.path doesn\'t contain a substring matching regexps.
Returns True if there are any forbidden substring
Returns False if there aren\'t any forbidden substring'

def check_regexp(self, req):

    if (self.forbidden_regexp_compiled is None):
        return False
    self.logger.debug(('name_check:    path    %s' % req.path))
    self.logger.debug(('name_check:    self.forbidden_regexp    %s' % self.forbidden_regexp))
    match = self.forbidden_regexp_compiled.search(req.path_info)
    return (match is not None)
