Hi, Please review JDK-8175362 : StringIndexOutOfBoundsException from /.*((a[^a]+){2})c$/.exec('ababc') JBS : https://bugs.openjdk.java.net/browse/JDK-8175362 webrev : http://cr.openjdk.java.net/~pmuthuswamy/8175362/webrev.00/ Thanks, Priya