'Lesson 2 -- Using character set ranges
Occasionally, you\'ll have a list of characters that you don\'t
want to match. Character sets can be negated using the ^
metacharacter.'

def test_anything_but_matching(self):

    string = ((((((((((('sales.xlx\n' + 'sales1.xls\n') + 'orders3.xls\n') + 'apac1.xls\n') + 'sales2.xls\n') + 'sales3.xls\n') + 'europe2.xls\n') + 'sam.xls\n') + 'na1.xls\n') + 'na2.xls\n') + 'sa1.xls\n') + 'ca1.xls')
    change_this_search_string = '[^nc]am'
    self.assertEquals(re.findall(change_this_search_string, string), ['sam.xls'])
