You are here: anchr tag replace « PHP « IT news, forums, messages
anchr tag replace

Posted by Php on 04/28/05 23:36

Its a long story, but basically, theres some code we cannot get around that
is taking anchor tags such as <a href="#sat"> and turning them into <a
href="http://host.com/folder/file.html?var=var&var2=var2#sat>.

I need to undo this action with a pattern match on a large body of content
with "". Can this be done. Here are further details:

I need a regular expression that will recognize the following where #anchor
can be anything such as #sat or #sunday or #lastpage:

<a*href="http://*#anchor"*>

And turn it into this:

<a*href="#anchor"*>

What I am doing is removing the
http://host/.../.../file.html?variable&variable that immediately precedes
the #anchor.

 

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

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