8073868: Regex matching causes java.lang.ArrayIndexOutOfBoundsException: 64Reviewed-by: attila, lagergren