[rancid] Excluding config lines in Rancid

Andreas Ott andreas at naund.org
Fri Sep 17 18:39:35 UTC 2021


Hi,


On Fri, Sep 17, 2021 at 12:28 AM Linux Threads <linuxthreads at gmail.com>
wrote:

> the following does not work for me I am sure the / in AV AI/ML Model is
> the culprit
>
> next if (/AV AI/ML Model:/);
>

Correct, you need to escape quote the center slash in 'AI/ML' with a
backslash as it is also used as the delimiter for the regex. Try this

 next if (/AV AI\/ML Model:/);

-andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20210917/f3a6dec2/attachment.htm>


More information about the Rancid-discuss mailing list