On Thu, 15 Nov 2001 20:09:08 +0100, Oosten, Sjoerd van wrote: > >> Hello, ive got a problem >> >> I want to replace this string: >> <a class="mn" href="whatever is here should be left her and is >> variable">this must also be variable</a> >> >> by: >> >> <font size="2"><a class="mn" href="whatever is here should be left >>her and >> is variable">this must also be variable</a></font>
try: ereg_replace("(<a class=\"mn\" href=\".*\">.*</a>)", "<font size=2>\\1</font>",$string); >> So the two tags should be placed before and after the link when a >>link is >> in my $pagecontent >> >> I know it's easier to use another class, but for the moment that's >>not an >> option. >> >> Greetings, >> >> Sjoerd >> >> ________________________________________ >> Sjoerd van Oosten >> Digitaal vormgever [EMAIL PROTECTED] >> Datamex E-sites B.V. >> http://www.esites.nl >> Minervum 7368 Telefoon: (076) 5 730 730 >> 4817 ZH BREDA Telefax: (076) 5 877 757 >> _______________________________________ >> > -- Mark, [EMAIL PROTECTED] on 11/15/2001 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]