posting the same question in multiple forums is very obnoxious. If you want help with this question please post the code you have already been trying to use. -------------------------------------------------

The '?!' extension lets you specify what should not follow your pattern. You were using a negated character class which can maybe be used in some cases for this type of matching but the '?!' extension is better for what you are trying to do.

I hope I am not doing your school work for you. -------------------------------------------------