String mystring = "GET /http://arduino/?page=1&time=20,40,30,2,14,2013¶m2=54& HTTP/1.1";
int a = mystring.indexOf('time');
int b = mystring.indexOf('&',a+1);
Serial.println ( "substring: "+ mystring.substring(a,b) );
the above yields 'e=1'
It seems to work fine is the value in indexOf is one character but blows up with a string.
any info would be good. thanks.