<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Eric Webb &#187; Regex</title>
	<atom:link href="http://ericcwebb.com/category/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericcwebb.com</link>
	<description>Work, life, and everything else...</description>
	<lastBuildDate>Thu, 08 Jul 2010 14:01:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Handy Regular Expressions</title>
		<link>http://ericcwebb.com/2009/04/01/handy-regular-expressions/</link>
		<comments>http://ericcwebb.com/2009/04/01/handy-regular-expressions/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 20:59:05 +0000</pubDate>
		<dc:creator>Eric Webb</dc:creator>
				<category><![CDATA[Regex]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://ericcwebb.com/?p=22</guid>
		<description><![CDATA[While working on a Sharepoint css file, I was able to use a nift regex instead of copying and pasting all over the place. The tag I had looked like this: #MSOZoneCell_WebPartWPQ4 td h3 a I wanted to add a tag on the end so that it looked like this: #MSOZoneCell_WebPartWPQ4 td h3 a, #MSOZoneCell_WebPartWPQ5 [...]]]></description>
			<content:encoded><![CDATA[<p>While working on a Sharepoint css file, I was able to use a nift regex instead of copying and pasting all over the place.</p>
<p>The tag I had looked like this:</p>
<p style="padding-left: 30px;"><em>#MSOZoneCell_WebPartWPQ4 td h3 a</em></p>
<p>I wanted to add a tag on the end so that it looked like this:</p>
<p style="padding-left: 30px;"><em>#MSOZoneCell_WebPartWPQ4 td h3 a, #MSOZoneCell_WebPartWPQ5 td h3 a</em></p>
<p>I used this Regex in Sharepoint Designer to do so:</p>
<p style="padding-left: 30px;"><strong>Find</strong></p>
<p style="padding-left: 30px;"><em>#MSOZoneCell_WebPartWPQ4 {.*$}</em></p>
<p style="padding-left: 30px;"><strong>Replace</strong></p>
<p style="padding-left: 30px;"><em>#MSOZoneCell_WebPartWPQ4 \1, #MSOZoneCell_WebPartWPQ5 \1</em></p>
<p>The &#8220;\1&#8243; is called a &#8220;Tagged Expression&#8221;.  It refers to the part of the value that is tagged in the &#8220;Find&#8221; syntax.  You tag something using brackets, so in this case &#8220;.*$&#8221; was tagged, which corresponded to this part of the result &#8221; td h3 a&#8221;.  I had about 10 of these, so this saved me a lot of time.</p>
]]></content:encoded>
			<wfw:commentRss>http://ericcwebb.com/2009/04/01/handy-regular-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
