Wildcard question |
Post Reply ![]() |
Author | |
Rauco ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() Posted: 17 January 2005 at 7:46pm |
Not sure of the usage of wildcards. I have a list of blacklisted domains that I want to add wildcards to. For example, if I want to block all e-mails from acme.com including things like ns1.acme.com, which would I use this: *acme.com? Or do I need the @ like *@*acme.com? Thanks |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
Rauco,
OK ... you will hate me but I would actually use the following RegEx:
((?i).+?@(.+?\.){0,2}acme.com)
This means Don't test for case, then one or more chars, then 0 or more chars+dot 0-2 times and then acme.com ... OR
The following:
Regards,
Dan S.
|
|
![]() |
|
Rauco ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
Nope. I don't hate you at all - I just have to find a good reference for RegEx! lol Thanks. I'll be tacking that on the front of all the blacklisted domains I have until I expand my RegEx knowledge. |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
Rauco, Remember that that was not a "simple" entry but a Regular Expression and as such must hav the ( ) around the expression exactly as I show or it will break. Dan S. |
|
![]() |
|
Rauco ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
Dan - With the little I know about RegEx it seemed that the ( ) were needed but thanks for the heads up. It works great so far and I've installed Regex Coach to get me farther. Thanks again! |
|
![]() |
|
keizersozay ![]() Groupie ![]() Joined: 26 January 2005 Location: United States Status: Offline Points: 77 |
![]() ![]() ![]() ![]() ![]() |
Dan, Thanks. |
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
This would be the BlockedFrom email blacklist. Dan |
|
![]() |
|
Rauco ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
Wouldn't it also work in the blocked domains?
|
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
It will but only if (I believe) the actual IP resolves to those names. Dan S.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.129 seconds.