#!/usr/local/bin/python2 import re re.compile('[^!]') print re.match('a')