Reply to Regular expressions

Your name:

Reply:


Posted by Jem777 on 04/12/05 13:30

Php docs are quite messy about what works with what function...
This is my problem; I want to strip out spaces from my tags:

$word = "[ / quote ]";
$word = eregi_replace("[[[:blank:]]*quote[[:blank:]]*]", "[quote]", $word);
$word = eregi_replace("[[[:blank:]]*\/[[:blank:]]*quote[[:blank:]]*]",
"[/quote]", $word);

I would expect the result to be: [/quote] but it is [ /[quote].
It seems the first replace actually do the replace, but the how does it
match the slash "/" ???

Thanks,
Camillo

[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

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