Noticed this urls.py definition in an open source django app.
r'^(?P<username>(?!signout|signup|signin)[\.\w]+)/$
How do I interprete the (?!signout|signup|signin) component?
I understand the P<username> but I am not sure what (?!signout|signup|signin) is for?
It’s a NOT operator. It matches if the text is not
signout,signup, orsignin.See Python’s re module documentation: