<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Regular Expression for Missing Alt Attributes</title>
	<atom:link href="http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/</link>
	<description>News from the Creative Front</description>
	<lastBuildDate>Tue, 27 Jul 2010 01:54:59 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrew J. Leer</title>
		<link>http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/comment-page-1/#comment-99077</link>
		<dc:creator>Andrew J. Leer</dc:creator>
		<pubDate>Thu, 03 Dec 2009 18:00:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/#comment-99077</guid>
		<description>Do I have this right? He said attempting to pingback...

http://haloscan.com/tb/leeand00/Removing_Proprietary_Attributes_from_html_tags_in_Awful_3rd_Old_Third_Party_HTML_Code_Using_Regular_Expressions</description>
		<content:encoded><![CDATA[<p>Do I have this right? He said attempting to pingback&#8230;</p>
<p><a href="http://haloscan.com/tb/leeand00/Removing_Proprietary_Attributes_from_html_tags_in_Awful_3rd_Old_Third_Party_HTML_Code_Using_Regular_Expressions" rel="nofollow">http://haloscan.com/tb/leeand00/Removing_Proprietary_Attributes_from_html_tags_in_Awful_3rd_Old_Third_Party_HTML_Code_Using_Regular_Expressions</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew J. Leer</title>
		<link>http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/comment-page-1/#comment-99075</link>
		<dc:creator>Andrew J. Leer</dc:creator>
		<pubDate>Thu, 03 Dec 2009 16:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/#comment-99075</guid>
		<description>You can do the same thing (but for img tags that end with the more xhtml compliment tags by modifying the expression to look like this: &lt;img/&gt;

&lt;img\s+((width&#124;height&#124;class&#124;id&#124;src&#124;usemap&#124;hspace&#124;vspace)=&quot;[^&quot;]+&quot;\s*)[^&gt;]+\/&gt;</description>
		<content:encoded><![CDATA[<p>You can do the same thing (but for img tags that end with the more <a href="http://www.w3.org/MarkUp/" class="ubernym uttAcronym"><acronym class="uttAcronym" title="eXtensible HyperText Markup Language">xhtml</acronym></a> compliment tags by modifying the expression to look like this: &lt;img/&gt;</p>
<p>&lt;img\s+((width|height|class|id|src|usemap|hspace|vspace)=&#8221;[^"]+&#8221;\s*)[^&gt;]+\/&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew J. Leer</title>
		<link>http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/comment-page-1/#comment-99074</link>
		<dc:creator>Andrew J. Leer</dc:creator>
		<pubDate>Thu, 03 Dec 2009 16:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/#comment-99074</guid>
		<description>You can do the same thing (but for img tags that end with the more xhtml compliment  tags by modifying the expression to look like this:

]+\/&gt;

It worked for me in jedit.</description>
		<content:encoded><![CDATA[<p>You can do the same thing (but for img tags that end with the more <a href="http://www.w3.org/MarkUp/" class="ubernym uttAcronym"><acronym class="uttAcronym" title="eXtensible HyperText Markup Language">xhtml</acronym></a> compliment  tags by modifying the expression to look like this:</p>
<p>]+\/&gt;</p>
<p>It worked for me in jedit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/comment-page-1/#comment-98305</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 12 Mar 2009 20:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/#comment-98305</guid>
		<description>this is a very good site on regular expression. I am trying to use regular expression for sift through all jsp source files to find out all image tags (standard HTML img tag or struts img tags),regardless of whether they have the alt attributes or not. But my requirement is that the entire code for each image tag must be returned. 

This is a not a problem if all the code for an image tag is in one line like . The problem shows if the img tag code crosses multiple lines like

In this case I can only get the first line. But I need to have the all the code returned.

Any help is highly appreciated.

Thanks,

John</description>
		<content:encoded><![CDATA[<p>this is a very good site on regular expression. I am trying to use regular expression for sift through all <acronym class="uttAcronym" title="Java Server Pages">jsp</acronym> source files to find out all image tags (standard <acronym class="uttAcronym" title="HyperText Markup Language">HTML</acronym> img tag or struts img tags),regardless of whether they have the alt attributes or not. But my requirement is that the entire code for each image tag must be returned. </p>
<p>This is a not a problem if all the code for an image tag is in one line like . The problem shows if the img tag code crosses multiple lines like</p>
<p>In this case I can only get the first line. But I need to have the all the code returned.</p>
<p>Any help is highly appreciated.</p>
<p>Thanks,</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/comment-page-1/#comment-98298</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 02 Mar 2009 14:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/#comment-98298</guid>
		<description>I&#039;ve been looking for/trying to create a regex to look for all images without width, height, or alt attributes (so I could then make them XHTML Strict compliant).  This regex definitely helps!  
I&#039;ve been trying to use the carat to negate the attributes, but didn&#039;t realize it only negates individual characters.

Thanks again.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been looking for/trying to create a regex to look for all images without width, height, or alt attributes (so I could then make them <a href="http://www.w3.org/MarkUp/" class="ubernym uttAcronym"><acronym class="uttAcronym" title="eXtensible HyperText Markup Language">XHTML</acronym></a> Strict compliant).  This regex definitely helps!<br />
I&#8217;ve been trying to use the carat to negate the attributes, but didn&#8217;t realize it only negates individual characters.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/comment-page-1/#comment-98038</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 12 Dec 2008 17:54:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rd2inc.com/archives/2005/07/11/regular-expression-for-missing-alt-attributes/#comment-98038</guid>
		<description>Very clever.  I was trying to find a way to negate the alt in the regexp, but manually specifying everything but it is a wonderful work around. Thanks!</description>
		<content:encoded><![CDATA[<p>Very clever.  I was trying to find a way to negate the alt in the regexp, but manually specifying everything but it is a wonderful work around. Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
