Relax the regular expression a bit

Not super sure about this. Maybe there's a better way to capture the string in question.