Hi ! Nexu <[EMAIL PROTECTED]> schrieb: > I'm trying to write a def to match a string that is an irc hostmask. eg: > [EMAIL PROTECTED] > But using re.search(). I get an error when the string starts with '*'. > What is the best way to solve this?
I suppose the problem occurs because you expression is not a valid regular expression. A correct regular expression should look like this: "[EMAIL PROTECTED]" Best regards Marc Schoechlin -- I prefer non-proprietary document-exchange. http://sector7g.wurzel6.de/pdfcreator/ http://www.prooo-box.org/ Contact me via jabber: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list