help with regular expression (for spam catching)
From: Chris W. Parker (cparker_at_swatgear.com)
Date: 06/04/04
- Previous message: Steve Buehler: "RE: iptables firewall/ftp problem"
- Next in thread: Ed Wilts: "Re: help with regular expression (for spam catching)"
- Reply: Ed Wilts: "Re: help with regular expression (for spam catching)"
- Maybe reply: Chris W. Parker: "RE: help with regular expression (for spam catching)"
- Reply: Reuben D. Budiardja: "Re: help with regular expression (for spam catching)"
- Maybe reply: Chris W. Parker: "RE: help with regular expression (for spam catching)"
- Maybe reply: Jason Staudenmayer: "RE: help with regular expression (for spam catching)"
- Maybe reply: Chris W. Parker: "RE: help with regular expression (for spam catching)"
- Maybe reply: Tobias Speckbacher: "RE: help with regular expression (for spam catching)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 4 Jun 2004 11:23:02 -0700 To: <redhat-list@redhat.com>
hello.
i have no idea what this would be called or if it's even possible with
one line of a regex so that's why i'm coming to the list.
everyone can identify words like:
viagra
v1agra
v1@gr@
vi@gra
etc.
but how do you identify those same words when random punctuation is
thrown in?
vi.agra
v1a;gr.a
etc.
is it possible for a regular expression to do something like the
following:
1. first identify the following string:
/v[!1i\|][a@]gr[a@]/
2. then check to see if there are any of the following characters in
there somewhere:
/[\.;:\/]/
i guess you *could* do something like the following:
/v[\.;:\/]?[!1i\|][\.;:\/]?[a@][\.;:\/]?g[\.;:\/]?r[\.;:\/]?[a@][\.;:\/]
?/
but that just seems overly complicated... ?
any suggestions?
thanks,
chris.
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Steve Buehler: "RE: iptables firewall/ftp problem"
- Next in thread: Ed Wilts: "Re: help with regular expression (for spam catching)"
- Reply: Ed Wilts: "Re: help with regular expression (for spam catching)"
- Maybe reply: Chris W. Parker: "RE: help with regular expression (for spam catching)"
- Reply: Reuben D. Budiardja: "Re: help with regular expression (for spam catching)"
- Maybe reply: Chris W. Parker: "RE: help with regular expression (for spam catching)"
- Maybe reply: Jason Staudenmayer: "RE: help with regular expression (for spam catching)"
- Maybe reply: Chris W. Parker: "RE: help with regular expression (for spam catching)"
- Maybe reply: Tobias Speckbacher: "RE: help with regular expression (for spam catching)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|