in reply to Re^4: How can I access the number of repititions in a regex?
in thread How can I access the number of repititions in a regex?
Though I never would have guessed that's what you were looking for from your initial post. If that doesn't do it, maybe you should post some of the actual data your dealing with and your expected output. -driver8for ('aabbbbbc', 'abccc', 'aabcc', 'aaacccc', 'abc') { print length $1, length $2, length $3, "\n" if /(a+)(b+)(c+)/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How can I access the number of repititions in a regex?
by pat_mc (Pilgrim) on Dec 18, 2008 at 14:51 UTC |