. "Period. " It's the same as if the whole X{0,0) wasn't there at all ???if there is an x present, it could still be matched by something later in the expression, so your intended purpose is defeated.* Since the undesired item in this example is a single character, you use [^x] to indicate that a character must be there, but that it must be anything except x." . . .