some books describe pumping lemma as this:Copied from Wikipedia.However, please note that actually pumping lemma can only be used for infinite regular language.Some people on stackoverflow also answers this problem: