'Set regular expression that indicates what URLs NOT TO trap.'

def set_what_to_trap(self, regex):

    try:
        self.what_to_trap = re.compile(regex)
    except re.error:
        error = 'The    regular    expression    you    configured    is    invalid.'
        raise ProxyException(error)
