>This is a very straightforward document.  Thanks, Len.  But now I have some
>questions.  According to that document, the ^ character is illegal except
>immediately after a left bracket.  However, most of the Imgate and Postfix
>regexp files have lines that begin with "/^".

becaus they are hunting patterns anchored to BOL

>Now I see in man regex 3 that perhaps ^ and $ are beginning and ending
>anchors.  (It's vague, but it seems to make sense.)

begin, end.  vague?  :)

>What I do not see anywhere is why there are / characters surrounding the
>regexp's.

these are the expression delimiters (begin/end expression), .  / is 
customary but if you have a lot of / inside the expression, rather than 
escape them all, use a different delimiter.

>   Is this part of the regexp standard or simply how Postfix
>identifies the start and end of each regexp?

postfix uses posix or pcre syntax.  postfix itself doesn't have any own 
regex syntax, basically.

Len


Reply via email to