Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Perl Regex question for img tags
Old 08-24-2007, 11:35 AM Perl Regex question for img tags
Skilled Talker

Posts: 62
Name: Josh
Trades: 0
Hi there,
Anyone who can answer this question, thank you! Anyone who can't - don't worry, I can't either and I consider myself to be a pretty good programmer! :-P

I have an ad script. It outputs html for the ads that is not xhtml compliant - it doesn't close the img tags. I do not have access to where the html for the ads is generated - therefore, I need to find a way to close the img tags in the php script that the ads class is called. Does anyone know of a way that I can use preg_replace to find the img tag and add a "/>" to the end of it instead of just ">"?

Any help is greatly appreciated!

Thanks
Josh
JoshChris is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Perl Regex question for img tags
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09782 seconds with 12 queries