<?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>Joho the Blog &#187; regex</title>
	<atom:link href="http://www.hyperorg.com/blogger/tag/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hyperorg.com/blogger</link>
	<description>Let's just see what happens</description>
	<lastBuildDate>Sat, 15 Jun 2013 21:48:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Microsoft Word does regex!</title>
		<link>http://www.hyperorg.com/blogger/2011/07/26/microsoft-word-does-regex/</link>
		<comments>http://www.hyperorg.com/blogger/2011/07/26/microsoft-word-does-regex/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 15:20:14 +0000</pubDate>
		<dc:creator>davidw</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.hyperorg.com/blogger/?p=10851</guid>
		<description><![CDATA[After literally decades of using Microsoft Word I just found out that it does regex! I discovered this because I needed to delete comments inserted throughout my book manuscript, in the form . Hundreds of them. I was contemplating exporting to HTML so I could use a text editor that can handle this type of [...]]]></description>
				<content:encoded><![CDATA[<p>After literally decades of using Microsoft Word I just found out that it does <a href="http://www.funduc.com/regexp.htm">regex</a>! </p>
<p>I discovered this because I needed to delete comments inserted throughout my book manuscript, in the form <AU:.....>. Hundreds of them. I was contemplating exporting to HTML so I could use a text editor that can handle this type of search and replace, but came across an <a href="http://office.microsoft.com/en-us/support/add-power-to-word-searches-with-regular-expressions-HA001087305.aspx">article</a> on how to use regular expressions in Word. Regexes let you use <a href="http://blog.ftwr.co.uk/archives/2011/03/18/understanding-complex-regex/">magical incantations that no one understands</a> but that cause text to dance in little circles and transform themselves in puffs of smoke. </p>
<p>For example, to get rid of the pesky markup in my manuscript, I just had to tell the Replace dialogue to use wildcards, and then had it search for \&lt;AU:?\&gt;. The backslashes are necessary so that the angle brackets are not read as regex instructions. The question mark tells Word to find everything between &lt;AU: and &gt;. Simple! And it accepts far more complex regular expressions that. (Here&#8217;s a <a href="http://myregextester.com/">site</a> that lets you test your regular expressions.)</p>
<p>Take a well deserved bow, Microsoft Word! (And then fix auto-numbers.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperorg.com/blogger/2011/07/26/microsoft-word-does-regex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Convert text with URLs to text with hyperlinks</title>
		<link>http://www.hyperorg.com/blogger/2010/01/16/convert-text-with-urls-to-text-with-hyperlinks/</link>
		<comments>http://www.hyperorg.com/blogger/2010/01/16/convert-text-with-urls-to-text-with-hyperlinks/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 16:44:14 +0000</pubDate>
		<dc:creator>davidw</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.hyperorg.com/blogger/2010/01/16/convert-text-with-urls-to-text-with-hyperlinks/</guid>
		<description><![CDATA[Using a Javascript regex function written by Sam Hesler at StackOverflow (thanks!), I&#8217;ve posted a simple little page that lets you turn text that has URLs in it into text that has clickable, hyperlinked URLs. That is, you go from http://www.globalvoicesonline.org to http://www.globalvoicesonline.org. The page is: ConvertURLsToLinks.html. It&#8217;s quite bareboned, and I&#8217;m sure there are [...]]]></description>
				<content:encoded><![CDATA[<p>Using a Javascript regex function written by Sam Hesler at <a href="http://stackoverflow.com/questions/37684/replace-url-with-html-links-javascript">StackOverflow</a> (thanks!), I&#8217;ve posted a simple little page that lets you turn text that has URLs in it into text that has clickable, hyperlinked URLs. That is, you go from http://www.globalvoicesonline.org to<br />
<a href="http://www.globalvoicesonline.org">http://www.globalvoicesonline.org</a>.</p>
<p>The page is: <a href="http://www.hyperorg.com/misc/ConvertURLsToLinks.html">ConvertURLsToLinks.html</a>. It&#8217;s quite bareboned, and I&#8217;m sure there are lots of sites that do a far better job with many more options. But, it worked well enough for the one job I wanted it for, so maybe it&#8217;ll work for you. At least it won&#8217;t destroy your original text (although keep the original just in case.)</p>
<p>The regex function I borrowed from Sam Hesler is:</p>
</p>
<p style="font-family:Courier, New Courier, monospace;">function replaceURLWithHTMLLinks(text) {<br />
  var exp = /(b(https?|ftp|file)://[-A-Z0-9+&#038;@#/%?=~_|!:,.;]*[-A-Z0-9+&#038;@#/%=~_|])/ig;<br />
  return text.replace(exp,&#8221;<a href="$1">$1</a>&#8220;);<br />
  }</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hyperorg.com/blogger/2010/01/16/convert-text-with-urls-to-text-with-hyperlinks/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.350 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-06-16 11:36:21 -->