Reply to Regular Expression replacement

Your name:

Reply:


Posted by hol on 11/06/07 16:40

Hello,

I want to replace all accurences of the substring
width:000px (where 000 is any 3 digit number)
with the string
width:800px.

For example the following string :
style="width:400px; height:326px;" id="VideoPlayback"
type="application/x-shockwave-flash"
should be changed to
style="width:800px; height:326px;" id="VideoPlayback"
type="application/x-shockwave-flash"

so I used the following command :
$pvid = str_replace("width:[1-9][0-9][0-9]px","width:800px",$pvid) ;

but it does not seem to work.

Any ideas on this?

Thnaks beforehand.

[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

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