You are here: pattern match and extract problem « PHP Programming Language « IT news, forums, messages
pattern match and extract problem

Posted by David Moore on 02/07/06 23:05

Hi All,
I expect someone can crack this one in no time.

Ok, what I'd like to do is to match a pattern in a string and extract a
portion of it. For example if I had a string like:

'The store had apples(20) and pears(30)'

how do I extract the '20' and '30'? ie. if the pattern is 'apples(??)', how
do I expect the '??'.


Ta in advance,
Dave

 

Navigation:

[Reply to this 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

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