[rancid] Re: Understand some regex used in rancid

Max Palatnik mpalatnik at wustl.edu
Thu Nov 13 04:05:13 UTC 2008


The # sign is probably the # in Switch# or Hostname#, so this command
searches for the following:

 #(0 or more whitespace), the variable $cmds_regexp, then 0 or more
whitespace at the end of a line.

Hope this helps
Max


On 11/12/08 6:36 PM, "Lance Vermilion" <rancid at gheek.net> wrote:

> I don't understand what this is meaning. i have searched around but
> still can't figure out what the # sign is used for in perl regex like
> it is being used here.
> 
> while (/#\s*($cmds_regexp)\s*$/) {
> 
> 
> If I can figure this out then I will have the IPS module working for
> rancid using the default clogin/rancid with only minor tweaks.
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss




More information about the Rancid-discuss mailing list