I have variables that always start with a number or numbers and need the script to determine where this number ends, now for an example the variable can be like the following:
1234-hello1.jpg
1 hello1.gif
1234hello1.gif
123456 hello1.gif
What I am trying to say is an explode function would not work, and my regex is very poor, I just need to be left with the first number and ignore any other number in the string. I just need to be left with the number(s) in bold.
Thanks in advance...