in reply to Re: How can I access the number of repititions in a regex?
in thread How can I access the number of repititions in a regex?
while ( <> ) { print "$string_1 matched ", scalar @list_1, "times." if @list_1 = $_~ +/regex_1/g; print "$string_2 matched ", scalar @list_2, "times." if @list_2 = $_=~ + /regex_1/g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How can I access the number of repititions in a regex?
by Fletch (Bishop) on Mar 11, 2008 at 13:16 UTC | |
by ww (Archbishop) on Mar 11, 2008 at 14:23 UTC | |
by pat_mc (Pilgrim) on Mar 11, 2008 at 13:35 UTC | |
|
Re^3: How can I access the number of repititions in a regex?
by Anonymous Monk on Mar 11, 2008 at 14:14 UTC | |
|
Re^3: How can I access the number of repititions in a regex?
by olus (Curate) on Mar 11, 2008 at 14:42 UTC | |
|
Re^3: How can I access the number of repititions in a regex?
by thundergnat (Deacon) on Mar 11, 2008 at 20:12 UTC |