|
-
October 6th, 2003, 01:14 PM
#1
eregi replace?
Hi, I have a little problem and I can't find the solution so I came here
I need to adjust link that people insert through the form. I made something like this:
$text=eregi_replace("(<a href=[\'\"][^\"\']+[\"\'])(>)([^<]+)(</a>)","\\1 target='blank' \\2 <ins>\\3</ins>\\4",$text);
It works fine - the only problem is that it only changes the last inserted link. Link before this last one remain unchanged... Anyone can help?
Thnaks in advance...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|