Tweak state regexp.