You are here: Re: regular expression help needed « PHP Programming Language « IT news, forums, messages
Re: regular expression help needed

Posted by Michael Fesser on 06/21/07 15:01

..oO(monomaniac21)

>how can i take a string and delete everything up to and including the
>first occurrence of a forward slash (/)? please help.

Try

$text = preg_replace('#^.*?/#', '', $text);

You could also do it with strpos() and substr_replace().

Micha

 

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

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