in reply to Re^6: Extract Multiple Lines from the End of a multi-line string
in thread Extract Multiple Lines from the End of a multi-line string
What do you think /(...){5}/ captures? The parens are there for grouping, not capturing. If you wanted to capture the five things, you'd use /((?:...){5})/
Note: New features in Perl 5.10 may make /(...){5}/ useful
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Extract Multiple Lines from the End of a multi-line string
by NateTut (Deacon) on Oct 17, 2008 at 18:20 UTC |