By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,776 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

LightBox regex, add link around images.

P: n/a


I want to add a link around images to add the lighbox JS.

I need to look for <img ... /and wrap a <a href=... around it.

But the regex is a bit out of my depth here.
1- How do I know the link of the image, (because I need it for the
2- How can I tell if there is already an image around the link, (so I
don't add another)?



'webmaster forum' ( | 'Free Blogs'
( | 'webmaster Directory'
'Recreation Vehicle insurance'
( | 'Free URL
redirection service' (
FFMG's Profile:
View this thread:

Message Posted via the webmaster forum, (Ad revenue sharing).

Dec 9 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.