in reply to Print 4 Lines below matching criteria
edit - I was sober too - omg, back to Idiocy for Dummies...m/ \nid: # match new line followed by id: [^\n]* # 0 or more characters that are not new lines \n # a newline ([^\n]*\n){4}) # the next 4 lines and store in $1 /sx; # treat as a '(s)ingle line' and (x) ignore whitesp +ace
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print 4 Lines below matching criteria
by ikegami (Patriarch) on Nov 16, 2006 at 05:56 UTC |