<?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>The Perceptus Back Story &#187; mangle</title>
	<atom:link href="http://blog.perceptus.ca/tag/mangle/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.perceptus.ca</link>
	<description>Issues and adventures in the life of a Canadian micro-sized geek company</description>
	<lastBuildDate>Tue, 31 Jan 2012 07:11:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating a single-quoted comma separated line of text</title>
		<link>http://blog.perceptus.ca/2009/03/27/a-quick-way-to-create-a-single-quoted-comma-separated-line/</link>
		<comments>http://blog.perceptus.ca/2009/03/27/a-quick-way-to-create-a-single-quoted-comma-separated-line/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 03:55:58 +0000</pubDate>
		<dc:creator>leonard</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[tools.perceptus.ca]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[mangle]]></category>
		<category><![CDATA[string]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://blog.perceptus.ca/?p=99</guid>
		<description><![CDATA[Today I had a need to create a single line of text like this: &#8216;product1.jpg&#8217;, &#8216;product2.jpg&#8217;, &#8216;product3.jpg&#8217; From a text blob that looks like this: product1.jpg product2.jpg product3.jpg This text chunk, in this case, comes from a copy-and-paste from a &#8220;dir *.jpg&#8221; in a Windows XP command window. There were actually only 6 image file [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had a need to create a single line of text like this:</p>
<p>&#8216;product1.jpg&#8217;, &#8216;product2.jpg&#8217;, &#8216;product3.jpg&#8217;</p>
<p>From a text blob that looks like this:</p>
<p>product1.jpg<br />
product2.jpg<br />
product3.jpg</p>
<p>This text chunk, in this case, comes from a copy-and-paste from a &#8220;dir *.jpg&#8221; in a Windows XP command window.</p>
<p>There were actually only 6 image file names that I wanted to put into an array in PHP, but I had a feeling that I would be doing this type of task again, so I spent the time to build a tool for it.</p>
<p>So if you need to do something similar, please try the latest addition to <a title="Perceptus' Web Tools Site" href="http://tools.perceptus.ca">Perceptus&#8217; Web Tools</a> site, the <a title="create csv from a bunch of words" href="http://tools.perceptus.ca/text-wiz.php?ops=14">List to single quoted CSV Text Wizard</a> (admittedly, we don&#8217;t save our best names for that site).  All you need to do is paste in a bunch of words, one per line, and you&#8217;ll get back the one line CSV.</p>
<p>I think this will be handy for creating source code for arrays in many languages, and also creating the bulk of the syntax for an IN () SQL statement.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.perceptus.ca/2009/03/27/a-quick-way-to-create-a-single-quoted-comma-separated-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

