On 25 Feb, David W. Tamkin wrote:
| At Dallman's behest, Rik reminded us that he had previously said,
|
| > ^^ anchors to the beginning or end of a variable, as distinguished
| > from ^ , which marks the beginning of a line.
|
| Actually, it anchors the regexp to the beginning or end of the text that is
| to be egrepped, defaulting to the entire head unless the B or HB flag on the
| colon line or "var ??" on the specific condition overrides the default.
|
| Technically it matches the putative newline that procmail adds at either end
| of the search area (so that a caret in the regexp can match the start of the
| search area and a dollar sign can match the end of it, even if there are no
| actual newlines there).
So returning to my question, there is a functional difference between:
* var ?? ^^regexp^^
and
* var ?? ^regexp$
but only if var contains a value with multiple [new]lines. Right?
Don Hammond
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail