Hostmask matching

Nexu nexu.jin at gmail.com
Sat Jun 3 23:57:13 EDT 2006


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?





More information about the Python-list mailing list