<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Help with regex exp. for Yahoo Pipes</title>
	<link>http://ask.metafilter.com/118571/Help-with-regex-exp-for-Yahoo-Pipes/</link>
	<description>Comments on Ask MetaFilter post Help with regex exp. for Yahoo Pipes</description>
	<pubDate>Fri, 03 Apr 2009 16:55:58 -0800</pubDate>
	<lastBuildDate>Fri, 03 Apr 2009 16:55:58 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Help with regex exp. for Yahoo Pipes</title>
		<link>http://ask.metafilter.com/118571/Help-with-regex-exp-for-Yahoo-Pipes</link>	
		<description>I&apos;m a librarian who uses Yahoo Pipes in combination with RSS feeds for new books from Amazon to order books. The title tags in each individual item begin as in this example: &quot;#1: A. Lincoln: A Biography&quot;. I would like to add a regex expression that will strip out the ranking (#1: or #10:) out of the title so that I can sort the book titles. What I want to remove is the # sign, the ranking number (one or two digit number), and the colon. Any help would be appreciated.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2009:site.118571</guid>
		<pubDate>Fri, 03 Apr 2009 16:40:51 -0800</pubDate>
		<dc:creator>jingo74</dc:creator>
		
			<category>regex</category>
		
			<category>yahoopipes</category>
		
	</item> <item>
		<title>By: Ginkgo</title>
		<link>http://ask.metafilter.com/118571/Help-with-regex-exp-for-Yahoo-Pipes#1698230</link>	
		<description>#\d+: would find that pattern if that helps...</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.118571-1698230</guid>
		<pubDate>Fri, 03 Apr 2009 16:55:58 -0800</pubDate>
		<dc:creator>Ginkgo</dc:creator>
	</item><item>
		<title>By: pb</title>
		<link>http://ask.metafilter.com/118571/Help-with-regex-exp-for-Yahoo-Pipes#1698231</link>	
		<description>You might try adding a regex filter where you choose the item title and replace &lt;code&gt;^#\d{1,2}:&lt;/code&gt; with nothing. That should match the number sign followed by one or two digits and a colon at the beginning of the title.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.118571-1698231</guid>
		<pubDate>Fri, 03 Apr 2009 16:57:33 -0800</pubDate>
		<dc:creator>pb</dc:creator>
	</item><item>
		<title>By: Mike1024</title>
		<link>http://ask.metafilter.com/118571/Help-with-regex-exp-for-Yahoo-Pipes#1698280</link>	
		<description>I don&apos;t know Yahoo Pipes, but I can tell you how I would do that with Perl&apos;s regular expressions, and I&apos;d do it like this:&lt;br&gt;
&lt;br&gt;
$a = &quot;#1: A. Lincoln: A Biography&quot;;&lt;br&gt;
$a =~ s/^#\d+:\s*// ;&lt;br&gt;
print &quot;$a \n&quot;;&lt;br&gt;
&lt;br&gt;
Which says (in short) find the pattern ^#\d+:\s* (i.e. start of line, # sign, 1 or more digits, colon, zero or more spaces) and replace it with nothing.&lt;br&gt;
&lt;br&gt;
Unfortunately I don&apos;t have a yahoo account, and I can&apos;t find much documentation for yahoo pipes regular expressions.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.118571-1698280</guid>
		<pubDate>Fri, 03 Apr 2009 17:42:04 -0800</pubDate>
		<dc:creator>Mike1024</dc:creator>
	</item><item>
		<title>By: dreadpiratesully</title>
		<link>http://ask.metafilter.com/118571/Help-with-regex-exp-for-Yahoo-Pipes#1698419</link>	
		<description>If you can&apos;t do replacement but grouping works (I, too, am ignorant of Pipes), /^#\d+:\s*(.*)/ should give you everything after the colon and adjacent whitespace (the title, in your example) as $1 or the Yahoo equivalent.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.118571-1698419</guid>
		<pubDate>Fri, 03 Apr 2009 20:09:06 -0800</pubDate>
		<dc:creator>dreadpiratesully</dc:creator>
	</item>
	</channel>
</rss>
