in reply to Re: Pattern Matching Problem
in thread Pattern Matching Problem
I had one issue with your method, it printed the Twist flags. So I tried it this way:
Which stripped out the flags too. However, I would bet there is a better way to do it that I am not able to think of at the moment.perl -n -we "print if /Twist 1/ .. /Twist 2/ and not /Twist \d/" test. +txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: Pattern Matching Problem
by chromatic (Archbishop) on Jun 27, 2000 at 03:44 UTC |