in reply to Re: Limiting number of regex matches
in thread Limiting number of regex matches
Or Maybe this:
Outputuse warnings; use strict; my $str = 'dog dog dog dog dog'; print join " " => ( split /\s+/, $str )[ 0 .. 2 ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Limiting number of regex matches
by Anonymous Monk on Sep 25, 2012 at 22:19 UTC | |
by 2teez (Vicar) on Sep 25, 2012 at 23:42 UTC | |
by Anonymous Monk on Sep 25, 2012 at 23:51 UTC |