Limo has asked for the wisdom of the Perl Monks concerning the following question:
I can match everything that I DO want, just not what I DONT want. I've got:confederation-as-router: 1 3277 myrouter1-cr2
This would return:$_ =~ s/^confederation-as-router\:\W+\d\W+\d+\W//
in the above example. I want the regex to match any entries NOT ending in cr(digit).dsdfge1-cr4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you match
by chromatic (Archbishop) on Sep 29, 2000 at 00:27 UTC | |
by Limo (Scribe) on Sep 29, 2000 at 00:33 UTC | |
by Fastolfe (Vicar) on Sep 29, 2000 at 00:46 UTC | |
by Limo (Scribe) on Sep 29, 2000 at 00:57 UTC | |
by Fastolfe (Vicar) on Sep 29, 2000 at 01:04 UTC | |
by tye (Sage) on Sep 29, 2000 at 01:04 UTC | |
| |
|
RE: How do you match
by runrig (Abbot) on Sep 29, 2000 at 00:58 UTC | |
|
RE: How do you match
by geektron (Curate) on Sep 29, 2000 at 00:46 UTC |