What is the largest regular expression size?
Posted on 2004-09-20
Say you declare a regular expression like:
var regMatch = new RegExp(sString);
What is the largest size that sString can be? If I have a search pattern that is 2855 characters long, i get an "java.lang.ArrayIndexOutOfBoundsException: 20" error. Is there a limit? And is there a way to get around it?