Try the following Rexp: ^[a-zA-Z]{0,99}$ (Allows any sequence of alpha characters up to the length of 99) If you type 'aa bbbb' (white space), it returns false very fast. If you type 'aaaa bbbb' (again, white space) it returns false after long time consuming much CPU.
I also noticed that if the length of the expression is {1,99} and not {0,99} it does not occur. I also believe that longer character sequence before the space increases the processing time significantly. The problem reproduces using the sample Applet.
I think this is the same as 9153 (RE.match() hangs when using {n,m})
Yes, it is. *** This bug has been marked as a duplicate of 9153 ***