Sorry for the title, I don't know how to explain it better.
I must get 354607 from the following string:
...jLHoiAAD1037354607Ij0Ij1Ij2...
The "354607" is dynamic, but it has the "1037" in any case before, and is in any case exactly 6 characters long.
The problem is, the string is about 50.000 up to 1.000.000 characters long. So I want a resource-friendly solution.
I tried it with:
preg_match_all("/1037(.*?){0,5}/", $new, $search1037);
and:
preg_match_all("/1037(.*?{0,5})/", $new, $search1037);
but, I don't know how to use regular expressions correctly.
I hope someone could help me!
Thank's a lot!