List Info

Thread: regex for this case ?




regex for this case ?
country flaguser name
United States
2007-09-11 02:21:34
I have funny problem ...

I use regex to block the proxy for some porn words like cum.
but the
user complaining that i blocked their website that contains
word like
"document"

how do i create a regex pattern for case like this ?
cum but not the one that has a beginning with [do] and not
ended with
[ent]+

thanks


adwin
www.kompani.net


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---


Re: regex for this case ?
country flaguser name
United States
2007-09-11 07:07:32
It might be easier to "White-list" the good sites.
 OTOH, a "black-list"
might be shorter.  There are some good maintained lists of
sites you
want to stay away from.  

http://www.mvps.org comes
to mind.  They have an awsome hosts file that
can be used to block unwanted sites.

*On Tue, Sep 11, 2007 at 12:21:34AM -0700 Adwin Wijaya
<adwin.wijayagmail.com> wrote:

> From: Adwin  Wijaya <adwin.wijayagmail.com>
> To: Regex <regexgooglegroups.com>
> Subject: regex for this case ?
> Date: Tue, 11 Sep 2007 00:21:34 -0700
> 
> 
> I have funny problem ...
> 
> I use regex to block the proxy for some porn words like
cum. but the
> user complaining that i blocked their website that
contains word like
> "document"
> 
> how do i create a regex pattern for case like this ?
> cum but not the one that has a beginning with [do] and
not ended with
> [ent]+
> 
> thanks
> 
> 
> adwin
> www.kompani.net
> 
> 
> 
-- 
Jon Molesa
rjmolesaconsoltec.net
if you're bored or curious
http://rjmolesa.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---


Re: regex for this case ?
country flaguser name
United States
2007-09-11 11:04:05
Use the "word boundary" code in your pattern

like this:

bcumb

On Sep 11, 1:21 am, Adwin  Wijaya <adwin.wij...gmail.com> wrote:
> I have funny problem ...
>
> I use regex to block the proxy for some porn words like
cum. but the
> user complaining that i blocked their website that
contains word like
> "document"
>
> how do i create a regex pattern for case like this ?
> cum but not the one that has a beginning with [do] and
not ended with
> [ent]+
>
> thanks
>
> adwinwww.kompani.net


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )