<?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: GNU basename in PL/SQL</title>
	<atom:link href="http://www.pythian.com/news/1229/gnu-basename-in-plsql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/1229/gnu-basename-in-plsql/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: GNU basename in PL/SQL &#171; die Seilerwerks</title>
		<link>http://www.pythian.com/news/1229/gnu-basename-in-plsql/#comment-284927</link>
		<dc:creator>GNU basename in PL/SQL &#171; die Seilerwerks</dc:creator>
		<pubDate>Thu, 02 Oct 2008 04:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1229/gnu-basename-plsql-style#comment-284927</guid>
		<description>[...] leave a comment &#187;  Reposted from The Pythian Group blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] leave a comment &raquo;  Reposted from The Pythian Group blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don Seiler</title>
		<link>http://www.pythian.com/news/1229/gnu-basename-in-plsql/#comment-278949</link>
		<dc:creator>Don Seiler</dc:creator>
		<pubDate>Thu, 18 Sep 2008 15:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1229/gnu-basename-plsql-style#comment-278949</guid>
		<description>@ebrian, thanks for the tip!</description>
		<content:encoded><![CDATA[<p>@ebrian, thanks for the tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don Seiler</title>
		<link>http://www.pythian.com/news/1229/gnu-basename-in-plsql/#comment-278946</link>
		<dc:creator>Don Seiler</dc:creator>
		<pubDate>Thu, 18 Sep 2008 15:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1229/gnu-basename-plsql-style#comment-278946</guid>
		<description>That should return &quot;blah.&quot; (with the period at the end).  It works for me:
&lt;pre&gt;
SQL&gt; select basename(&#039;/usr/bin/blah.dbf&#039;,&#039;dbf&#039;) from dual;

BASENAME(&#039;/USR/BIN/BLAH.DBF&#039;,&#039;DBF&#039;)
-----------------------------------
blah.
&lt;/pre&gt;

This is precisely how GNU basename works.</description>
		<content:encoded><![CDATA[<p>That should return &#8220;blah.&#8221; (with the period at the end).  It works for me:</p>
<pre>
SQL> select basename('/usr/bin/blah.dbf','dbf') from dual;

BASENAME('/USR/BIN/BLAH.DBF','DBF')
-----------------------------------
blah.
</pre>
<p>This is precisely how GNU basename works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ebrian</title>
		<link>http://www.pythian.com/news/1229/gnu-basename-in-plsql/#comment-278943</link>
		<dc:creator>ebrian</dc:creator>
		<pubDate>Thu, 18 Sep 2008 15:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1229/gnu-basename-plsql-style#comment-278943</guid>
		<description>10g+ option
&lt;pre&gt;
SQL&gt; select  filename
  2     , regexp_substr(filename, &#039;[^/]*$&#039;) &quot;just_filename&quot;
  3  from t1;

FILENAME                       just_filename
------------------------------ ---------------
/lvl1/lvl2/lvl3/filename.txt   filename.txt   
/lvl1/lvl2/filename2.txt       filename2.txt  
filename3.txt                  filename3.txt
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>10g+ option</p>
<pre>
SQL&gt; select  filename
  2     , regexp_substr(filename, '[^/]*$') "just_filename"
  3  from t1;

FILENAME                       just_filename
------------------------------ ---------------
/lvl1/lvl2/lvl3/filename.txt   filename.txt
/lvl1/lvl2/filename2.txt       filename2.txt
filename3.txt                  filename3.txt
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin 't Hart</title>
		<link>http://www.pythian.com/news/1229/gnu-basename-in-plsql/#comment-278875</link>
		<dc:creator>Colin 't Hart</dc:creator>
		<pubDate>Thu, 18 Sep 2008 11:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/blogs/1229/gnu-basename-plsql-style#comment-278875</guid>
		<description>What should this do:

SELECT basename(&#039;/user/bin/blah.dbf&#039;, &#039;dbx&#039;) FROM dual;</description>
		<content:encoded><![CDATA[<p>What should this do:</p>
<p>SELECT basename(&#8216;/user/bin/blah.dbf&#8217;, &#8216;dbx&#8217;) FROM dual;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

