fixed the regexp parser bug