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 hits 'your email
> has won'?

You put a question mark after the optional section.  I would write
something like this:

MN_YEAHRIGHT /\bYour e-?mail (?:(?:address|account) )?(?:has|just) won(?: 
you)?\b/


Note that I also included the space in the optional section since you
would require two spaces otherwise.

-- 
Bowie

Reply via email to