Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-30-2009, 08:04 AM   PM User | #1
snowysweb
Regular Coder

 
Join Date: Sep 2008
Posts: 280
Thanks: 25
Thanked 9 Times in 9 Posts
snowysweb is an unknown quantity at this point
reg expres

Hi all was wondering if there was a way to use preg_replace to find lets say, any anchor tag and then add a space on the end?

PHP Code:
$start "><a";
$end ">";
$start2 "> <a";
$end2 "> ";
$data preg_replace("/(?<=$start).*(?=$end)/m""/(?<=$start2).*(?=$end2)/m"$data,); 
Any ideas?
snowysweb is offline   Reply With Quote
Old 04-30-2009, 08:05 AM   PM User | #2
snowysweb
Regular Coder

 
Join Date: Sep 2008
Posts: 280
Thanks: 25
Thanked 9 Times in 9 Posts
snowysweb is an unknown quantity at this point
(that just replaces the tags with gobbldy goope, obviously)
snowysweb is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:57 PM.


Advertisement
Log in to turn off these ads.