in reply to Re^2: get n lines before or after a pattern
in thread get n lines before or after a pattern
Perhaps I'm missing something, but I wouldn't want to find "jackhammer" if I were searching for "jack" as the first name--as listed in the OP's data set. However, the non-word-boundary regex is perfect for finding all first names containing the sub-string "jack", as $vals[2] =~ /jack/ would.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: get n lines before or after a pattern
by ww (Archbishop) on Jul 25, 2012 at 22:14 UTC | |
by Kenosis (Priest) on Jul 25, 2012 at 22:31 UTC |