Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

insert ALT attribute into IMG tags that don't already have ALT attributes

// insert ALT attribute into IMG tags that don't already have ALT attributes
Cialis tadalafil from india is it safe. Where can i buy Cialis tadalafil online. Cial Buy Phentermine 37.5 in Minneapolis. Free overnight pharmacy Phentermine p. Tablet ph
#/usr/local/bin/perl    -w
use strict;
=item THIS NEEDS TO BE ADJUSTED SO IT WORKS WITH JSP
(02:35:50) VERSUSearth: I'll have to adjust my insert_alt script to take JSP into account next time
(02:36:35) mitiege: yep- I'm guessing you are looking for the first closing sign and inserting before that..
(02:36:47) mitiege: a simple fix would be to put the alt first in the img tag...
(02:37:06) VERSUSearth: yeah that's probably a good idea
=cut


$^I=".bk";

#undef $/;           # read in whole file, not just one line

my $text = "" ;    #Insert blank alt attribute

while (<>) {

	#m{<title>(.*?)</title>}ix;
	#my $text = $1;    #Use the document title as the ALT text

	unless (m{<img.*?alt=.*?>}ix){
		s{(<img)(.*?)>}{$1$2 alt="$text">}gsix;
	}
	print "$_";

}

Purchase Amoxicillin and clavulanate potassium over the counter fedex. I want a 875 m Who makes Valtrex 1 gram. Valtrex coupon fedex no prescription. Cheap non prescriptio