Re: Hostmask matching

2006-06-04 Thread John Machin
On 4/06/2006 4:45 PM, Nexu wrote: > On Sun, 2006-06-04 at 06:26 +, Marc Schoechlin wrote: >> 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

Re: Hostmask matching

2006-06-03 Thread Nexu
On Sun, 2006-06-04 at 06:26 +, Marc Schoechlin wrote: > 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

Re: Hostmask matching

2006-06-03 Thread Marc Schoechlin
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

Re: Hostmask matching

2006-06-03 Thread John Machin
On 4/06/2006 1:57 PM, Nexu wrote: > I'm trying to write a def Perhaps you mean a function? > to match a string that is an irc hostmask. eg: > [EMAIL PROTECTED] > But using re.search(). If you want to find an IRC hostmask in some longer string, yes, use re.search(). However if you want to check

Hostmask matching

2006-06-03 Thread Nexu
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? -- http://mail.python.org/mailman/listinfo/python-list