You are here: Re: [PHP] Need help with ereg regular expression « PHP « IT news, forums, messages
Re: [PHP] Need help with ereg regular expression

Posted by Richard Lynch on 10/03/91 11:07

KHS wrote:
> Richard Lynch wrote:
>
>>KHS wrote:
>>
>>
>>
>>>Here is an example of the input:
>>>#include FT_FREETYPE_H
>>>#include <stdio.h>
>>>#include "freetype/freetype.h"

Perhaps:

<?php
$text = trim(str_replace("#include", "", $text));
preg_match('[<"]?(.*)[>"]?', $text, $answer);
echo $answer[1];
?>

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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