Re: Optional argument in regex

2010-08-16 Thread Bowie Bailey
On 8/16/2010 7:00 AM, Mynabbler wrote: > I think everybody and their dog made a ruleset regarding 'your email address > has won'. Something like: > > MN_YEAHRIGHT /\bYour (?:email|e-mail) (?:address|account) (?:has won|just > won you)\b/ > > How do you make the second argument optional? So it also

Re: Optional argument in regex

2010-08-16 Thread John Hardin
On Mon, 16 Aug 2010, Mynabbler wrote: I think everybody and their dog made a ruleset regarding 'your email address has won'. Something like: MN_YEAHRIGHT /\bYour (?:email|e-mail) (?:address|account) (?:has won|just won you)\b/ I've done lots. Take a look in my sandbox. How do you make the

Re: Optional argument in regex

2010-08-16 Thread Martin Gregorie
On Mon, 2010-08-16 at 04:00 -0700, Mynabbler wrote: > I think everybody and their dog made a ruleset regarding 'your email address > has won'. Something like: > > > How do you make the second argument optional? So it also hits 'your email > has won'? > One way is to use a meta: body _MN_YR1

Re: Optional argument in regex

2010-08-16 Thread Daniel McDonald
On 8/16/10 6:00 AM, "Mynabbler" wrote: > > I think everybody and their dog made a ruleset regarding 'your email address > has won'. Something like: > > MN_YEAHRIGHT /\bYour (?:email|e-mail) (?:address|account) (?:has won|just > won you)\b/ > > How do you make the second argument optional? So i