You are here: How do I get this value from a regular expression « PHP Programming Language « IT news, forums, messages
How do I get this value from a regular expression

Posted by laredotornado@zipmail.com on 12/12/06 17:03

Hi,

I'm having trouble with preg_match. I want to get the value in
parenthese from this pattern

$pattern = "/ab(.*)cde/";
$str = "abxyzcde";

What preg_match expression would i have to write to get the value "xyz"
into a string?

I'm using php 4.4.4. Thanks, - 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

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