Help for this page

Select Code to Download


  1. or download this
    my $pattern = qr{HOSTNAME:\s*(?:\d{4}-)?\Q$hostname_for_regex\E(grbr-r
    +wan-x)\s+GRBR:\s*\Q$dev_ref->{grbr}\E}ixms;
    
  2. or download this
    my $pattern = qr{            # quoted regex
        HOSTNAME:                # Literal text
    ...
        \s*                      # 0 or more whitespace
        \Q$dev_ref->{grbr}\E     # Just the GRBR
        }ixms;