I'm trying to get the unique ID from a string using PHP regex but I'm having problems generating the regex pattern.
sample urls
lesson-computer-networking-xpt2-t9295779.html // need to get 9295779
lesson-summary-t9295778.html //need to get 9295778
lesson-part2-t94.html //need to get 94
The length of first portion of the string depends on the page title but last portion is always -txxxxxxxx.html
Can someone help me to generate the pattern?