
rovf
Veteran
Apr 30, 2010, 12:12 AM
Post #2 of 2
(5358 views)
|
Re: [jnijjar] matching n lines after regular expression
[In reply to]
|
Can't Post
|
|
(1) Would the .. operator help? See perldoc perlop. (2) Do you need to process the input one line at a time? If you can afford storing the whole input into a string, you could also match something like /Friday\n((?:[^\n]*\n){3})/m
|