Answer the question
In order to leave comments, you need to log in
How to extract news ID from URL?
Hello!
Can you please tell me how to extract the news ID, which is after the second slash before the hyphen, using regular expressions?
Initial data :
site.com/cat/36814-antonov-polnaya-ahineya.html
site.com/80-90/36460-dobrynin-polnaya-ahineya.html
site.com/cat/4415-pyryshki.html
36814
36460
4415
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question