Reply to Regex help

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация