Thanks, it works, although I don't understand why I need to 1) make it ungreedy since the part can only occur as the last token, and 2) add a trailing ".*" for it to work since it's a single word and nothing can possibly follow.
I'll investigate further.
--
Edit: This works. Maybe it's not a plain space that separates "dummy" from the rest.
I'll investigate further.
--
Edit: This works. Maybe it's not a plain space that separates "dummy" from the rest.
d = re.search('<title>(.+) (- dummy)?</title', al, re.IGNORECASE)