I need some coding help... I have a string, for example:
$string = "post-title/367895378/";
The numbers there... in the string they always start with 367 and then there are anywhere from 3 to 6 digits afterwards.
I need to remove the "367" and all the numbers afterwards, and the trailing slant, so that the string ends up as "post-title/" (the post title changes based on the page it's on, of course).
The numbers starting with 367... and the slant are always going to be at the end of the url, so everything starting with 367 and afterwards should be eliminated.
I know that needs some kind of regex, but that's beyond my skills...