Yes of course... Without trying it out, I think it should be something like preg_replace('#<META HTTP-EQUIV=.+>#','',$variable); That would replace any string in $variable that starts with: <META HTTP-EQUIV= and have at least one char before the closing > I would advise you to have a look at http://php.net/manual/en/reference.pcre.pattern.syntax.php and http://php.net/manual/en/reference.pcre.pattern.modifiers.php Best regards... Raul Berina schrieb: > > > Thanks for the help. > > What about I don't know exactly the the other string behind <META > HTTP-EQUIV= ???????????????????????> > > Is that possible in preg_replace? > > Thanks > > Stephan Schulze <nahpeps@xxxxxx <mailto:nahpeps%40gmx.de>> wrote: This > will not work because starting delimiter < and ending delimiter > > are not the same. > > Better to use: > preg_replace('#<META HTTP-EQUIV=" refresh" CONTENT="0; > url=http://www.redyam. com/1.html">#','',$variable); > > Best regards > > abhishek jain schrieb: > > > > > > Hi you need to use preg_replace: > > $variable is the variable containing the string. > > > > preg_replace('<META HTTP-EQUIV=" refresh" CONTENT="0; > > url=http://www.redyam. com/1.html">','',$variable); > > > > http://uk2.php.net/preg_replace <http://uk2.php.net/preg_replace> > <http://uk2.php.net/preg_replace <http://uk2.php.net/preg_replace>> > > -- > > .. UND EIN RIESIGES SCHAF WIRD VOM HIMMEL FALLEN UND DIE WELT RETTEN!!! > ACH IHR GLÜCKLICHEN ;-) > > > > > LearnCareGo missions mobilization for local churches > > --------------------------------- > You rock. That's why Blockbuster's offering you one month of Blockbuster > Total Access, No Cost. > > [Non-text portions of this message have been removed] > > -- .. UND EIN RIESIGES SCHAF WIRD VOM HIMMEL FALLEN UND DIE WELT RETTEN!!! ACH IHR GLÜCKLICHEN ;-)