I am not good at with regular expressions, I need some help.
I have a link link this below:
http://www.mydomain.com/1/1/5/1/some-name-123-115194_7_9.jpg
What should be the regex to get with php like below:
This is what I have tried so far:
preg_match_all('/(\d+)(\w+)/', $str,$matches);
Use
preg_replace:Rexplanation: