You neglected to add digits to $fqdn, which your hostname contains.
Instead you should use something like [A-Za-z0-9\-\.]+, but if if still find your regexp fails, a basic diagnosis would be to remove components from the regexp until it does work, and then work out why that last one you removed failed to match...
--k.
In reply to Re: CISCO Log file pattern matching (again!)
by Kanji
in thread CISCO Log file pattern matching (again!)
by blue_cowdawg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |