Reply to regular expression problem (simple level)

Your name:

Reply:


Posted by nescio on 12/19/05 13:14

hello,

i have got a list of names in the following format:
$name = "/*jansen*/jansen";
-----

i want to change them into:
$name = "jansen";
-----

i tried to use a regular expression to do this:
$newname = ereg_replace('^(/\*)([a-zA-Z]+)(\*/)$', '',$name);

but i always get the same value back:
$newname = "/*jansen*/jansen";

what am i doing wrong?

thanks

[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

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