accept_these_nonmbers Regular Expression
I have a question about regular expressions and accept_these_nonmembers. If I want any address in
anl.gov
or example.com
to be able to post, is this correct for the accept_these_nonmembers box?
^.*anl\.gov
^.*example\.com
Do I need a "$" at the end of each regular expression? Thanks.
Barry S. Finkel Computing and Information Systems Division Argonne National Laboratory Phone: +1 (630) 252-7277 9700 South Cass Avenue Facsimile:+1 (630) 252-4601 Building 240, Room 5.B.8 Internet: BSFinkel@anl.gov Argonne, IL 60439-4828 IBMMAIL: I1004994
Barry Finkel wrote:
I have a question about regular expressions and accept_these_nonmembers. If I want any address in
anl.gov
or example.com
to be able to post, is this correct for the accept_these_nonmembers box?
^.*anl\.gov ^.*example\.com
Do I need a "$" at the end of each regular expression?
No, you don't need a '$', but consider that "^.*anl\.gov" will not only match all the addresses you want to match but also addresses such as manl.governance@spammer.invalid spammer@zanl.gov and spammer@anl.gov.cc. I suggest either
^.*[@.]anl\.gov$
if you want to also accept sub domains like mail.anl.gov or
^.*@anl\.gov$
if you don't.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
b19141@anl.gov
-
Mark Sapiro