Find a regular expression

sss= "http://www.qhnews.com/newscenter/system/2014/07/22/011460349.shtml
I want the number after the last" / "


regular expression

 ([^/]+)$

[^/]+$

recommends an online testing regularization tool regex101
Select Python .

([^/]+)$

enter the regular and the string to validate, respectively. You can see the results.


([^ /] +)\ .shtml $

Menu