I'm trying to write a def to match a string that is an irc hostmask. eg: *one!~*name at a??-??-101-101.someisp.com But using re.search(). I get an error when the string starts with '*'. What is the best way to solve this?