Answer the question
In order to leave comments, you need to log in
How to use a regular expression to get what you want after a character?
Please tell me there is a link
http://***.ru/***/series1
http://***.ru/***/series1/ (may be at the end with a slash)
series1
Answer the question
In order to leave comments, you need to log in
preg_match('/([^\/]+)\/?$/', "http://sdfsdf.ru/sdfsd/series1/", $m);
var_dump($m);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question