|
Posted by Erwin Moller on 09/27/83 12:02
UKuser wrote:
> On Jan 29, 11:39 am, UKuser <spiderc...@yahoo.co.uk> wrote:
>> Hi Guys,
>>
>> I am currently working on the following to completely replace the <a
>> href> tag and all content but its not working:
>>
>> $input = "<a href=\"some_random_text.html?tes=hello&str=pol%20\">Text
>> here</a>";
>> echo ereg_replace('<a href="[A-Za-z0-9._-][&\?=]+">',"", $input);
>>
>> Will keep working on it but if you get there first any help would be
>> great.
>>
>> Thanks
>>
>> A
>
> Done it - solution is <a href="[^"]+">
Hi,
That misses:
< a href=
or
<a href =
I am not sure if that is a problem.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|