|
Posted by Nicholas Sherlock on 02/03/06 12:30
Hey there,
I'm trying to get a Perl regular expression to work, and I can't seem to
get it quite right.
It should match text like [download: 12,20,28] and match the subpatterns
"12", ",20", ",28".
/\[download:[^0-9]*([0-9]+)(,[0-9]+)*\]/i
When I try it, it only returns the first and last items (Ie. "12",
",28"). What am I missing?
Cheers,
Nicholas Sherlock
[Back to original message]
|