Im trying to preform a regex search in python. I have a string which can be either domain.com/user or domain.com/123
However I want to preform a match if the string is domain.com and /user is NOT found.
import re
re.search('domain.com!(/user)',src,re.IGNORECASE)
Can you please assist, Thanks,