Welcome to WebmasterWorld Guest from 220.127.116.11
How can I extract the number 19 from the string product_27001_th19.jpg . The solution needs to be dynamic, as the function should return 19 for all the following:
I am perl programmer and not sure how to do this in php.
my ($number) = $filename =~ m/(\d+)\.[^.]+$/;
update: oops, you wish to do that in php....