Filters reg exp format

Further to the last conversation

if I wish to allow the following

anything @ sun.com

i can use two expressions

http://.*.sun.com/.*

http://sun.com/.*

can i do this with just one expression - yet not allow the domain(s)blacksun.com, yellowsun.com etc

[354 byte] By [paul.sutherland@ccc.govt.nza] at [2007-11-26 17:16:32]
# 1
To block <anything>sun.com, just use http://.*sun.com/.*( http://<period>*sun.com/<period>* will solve the purpose)
b00m3ra at 2007-7-8 23:44:36 > top of Java-index,Web & Directory Servers,Web Servers...
# 2
but that would also include the domain yellowsun.com I the allowed filter i want to allow anything from the sun.com domaine.g. www.sun.com, java.sun.com, forum.java.sun.combut not permit domains such as blacksun.com, yellowsun.com, bosun.com etc
paul.sutherland@ccc.govt.nza at 2007-7-8 23:44:36 > top of Java-index,Web & Directory Servers,Web Servers...
# 3

Making this with a single expression is not possible.

Instead allow

http://.*sun.com/.*

and deny

http://blacksun.com/.*

http://yellowsun.com/.*

This should solve the purpose.

b00m3ra at 2007-7-8 23:44:36 > top of Java-index,Web & Directory Servers,Web Servers...
# 4
But i dont know how many sites i may wish to block/deny existSo is the only way to do it to use 2 expressions as first proposed http://.*.sun.com/.* http://sun.com/.*
paul.sutherland@ccc.govt.nza at 2007-7-8 23:44:36 > top of Java-index,Web & Directory Servers,Web Servers...
# 5
Let us understand the requirement right.You want to allow anything.sun.com and NOT anythingsun.com?
b00m3ra at 2007-7-8 23:44:36 > top of Java-index,Web & Directory Servers,Web Servers...
# 6

In the allowed sites I want to be able to have one entry that will allow

http://domain.com/ and http://111.domain.com/ , http://222.domain.com/ , http://zzz.domain.com/ etc

But not allow anything from a site whose address ends in domian.com e.g somedomain.com, thatdomain.com, otherdomain.com

As far i i see it could be done with two expresions

http://domain.com/.* and http://.*.domain.com/.*

- can it be done with just one expression

i hope this makes it clearer

paul.sutherland@ccc.govt.nza at 2007-7-8 23:44:36 > top of Java-index,Web & Directory Servers,Web Servers...