I've added more to the docstring.

Why do you want to change the regex part? I don't see a problem with the implementation.