I have a list of URLs of type
http://www.example.com/pk/ca
,http://www.example.com/pk
,http://www.example.com/anthingcangoeshere/pk
, andhttp://www.example.com/pkisnotnecessaryhere
.
Now, I want to find out only those URLs that ends with /pk
or /pk/
and don't have anything in between .com
and /pk