Reply to Re: Regular Expression replacement

Your name:

Reply:


Posted by Steve on 11/07/07 14:03

"hol" <contact7@hol.gr> wrote in message
news:fgqmsv$u8d$1@newsmaster.pub.dc.hol.net...
> Thanks for your reply Steve.
>
> I tried what you suggested
> $pvid = str_replace(" /width\s*?:\s*?\d{1,3}px/i","width:800px",$pvid) ;
> but unfortunatelly did not work.

i just used:

/width\s*?:\s*?\d{1,3}px\s*?;?/i

as the pattern, this as the string to search:

width:400px; height:326px;" id="VideoPlayback"

and this as the replacement:

width:800px;

and i got this as the result:

width:800px; height:326px;" id="VideoPlayback"

seems to work for me. sorry it does not for you.

[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

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