|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-22 14:15 UTC] iliaa@php.net
[2003-03-09 18:59 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 05:00:01 2025 UTC |
Running Apache 1.3 as a service on Windows XP $text = ereg_replace ("<a[^>]+href *= *([^ ]+)[^>]*>", "<a href=\\1>", $text); The above line of code is supposed to find all a tags and strip any attributes except href. However: $text = "bacon <a href='http://www.whatever.com' title='hello!'>hello</a>"; will be set to: bacon !<a href='http://www.whatever.com' title='hello'>hello</a> How in the hell did that exclaim get to the start of the a tag? Maybe I'm just doing something wrong, but it looks like a bug to me.