On Tue, 4 Dec 2001 09:20:33 -0800 (PST)
Paul Schwebel <[EMAIL PROTECTED]> wrote:

> 
> --- Mark Weaver <[EMAIL PROTECTED]> wrote:
> > Matt,
> > 
> > have you looked into setting up some regex's in the SMTP's configuration
> > file. This is one good way to start taking a bite out of all that crap
> > they're sending at your mailservers. 
> <snip>
> 
> Could you explain what "regex's in the SMTP'S configuration file" is?
> 
> Thanks,
> 
> -Paul "He can be taught!" Schwebel

Paul,

regex is a geek-speak for regular expression. what it referes to is a search function 
used in Unix/PERL/C/C++ and other high level languages, both interpreted and compiled 
to find alpha-numeric string patterns. since i'm most familiar with the way PERL does 
it i'll show you an example for PERL.

        regular expression
        ==================
        s/pattern/replace
        s = substitute
        /pattern/ = what you're looking for
        /replace/ = what you want to replace with once you've found the
        pattern

        s/a-z/A-Z/ ( this regex would change everything in lower case to
        uppercase.

        Pattern-matching Operators
        --------------------------
        m/pattern/gimosx
        m = matching
        /pattern/ = the pattern being searched for to be matched
        /gimsox = the operators to be used to dictate the terms of the
        matching search

        modifire | meaning
        ---------+----------------------------------------------------------
        g        | Match globaly i.e., find all occurences
        i        | Do case sensitive patter matching
        m        | Treat string as multiple line
        o        | Only compile pattern once
        s        | treat string as single line
        x        | Use extended regular expressions

this is how it is explained in O'Reilly "PERL in a Nutshell" Desktop Quick Reference. 
With bash scripting and Unix needs it's much the same but does vary according to 
application. it would be best to get to know exactly the needs of the application, but 
this is the basic idea of what regex is.

-- 
daRcmaTTeR
=/\=???
      |%C++
Registered Linux User # 186492

"We love and desire the things most that will kill us!"

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to