You could capture the 2 parts in a capturing group:
^https?://[^/]+/([^/]+).*/(.*)$
That would match:
^ Match from the start of the string
https?:// Match http with an optional s followed by ://
[^/]+/ Match not a forward slash using a negated character class followed by a forward slash
([^/]+) Capture in a group (group 1) not a forward slash
.* Match any character zero or more times
/ Match literally (this is the last slash because the .* is greedy
(.*)$ Match in a capturing group (group 2) zero or more times any character and assert the end of the line $
Your matches are in the first and second capturing group.
Demo
Or you could parse the url, get the path, split by a / and get your parts by index:
from urlparse import urlparse
o = urlparse('http://www.example.com/some-text-to-get/jkl/another-text-to-get')
parts = filter(None, o.path.split('/'))
print(parts[0])
print(parts[2])
Or if you want to get the parts that contain a - you could use:
parts = filter(lambda x: '-' in x, o.path.split('/'))
print(parts)
Demo