I Have String like this, and I want capture characters between .html
and the first slash
http://example.org/some-path/some-title-in-1978.html
This part some-title-in-1978
, for that I came up with this regex:
/\/.+?(?=\.html)/
and result are not what i want, it's like this:
//domain.org/some-path/some-title-in-1978
via user1086010
No comments:
Post a Comment