<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Scarabée Software: Forum — I want to delete beginning numbers]]></title>
		<link>https://scarabee-software.net/forum/viewtopic.php?id=157</link>
		<atom:link href="https://scarabee-software.net/forum/extern.php?action=feed&amp;tid=157&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in I want to delete beginning numbers.]]></description>
		<lastBuildDate>Fri, 09 Dec 2011 21:27:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: I want to delete beginning numbers]]></title>
			<link>https://scarabee-software.net/forum/viewtopic.php?pid=759#p759</link>
			<description><![CDATA[<p>Works with Siren 3.0 too.</p><br /><p>Only since the regular expression engine has changed to wxwidgets<br />we have to use the \n syntax instead of $n for backreferencing:</p><br /><br /><p>Instead $1, $2, $3,...</p><p>EXPRESSION:&nbsp; &nbsp; %f(s/(\d+)\s*-*\s*(.+)/<strong>$2</strong>/)<br />---------------------------------------^</p><br /><p>use \1, \2, \3,...</p><p>EXPRESSION:&nbsp; &nbsp; %f(s/(\d+)\s*-*\s*(.+)/<strong>\2</strong>/)<br />----------------------------------------^</p><br /><br /><p>You can find details about the regular expression syntax in the wxWidgets online documentation <br />(<a href="http://docs.wxwidgets.org/trunk/overview_resyntax.html">http://docs.wxwidgets.org/trunk/overview_resyntax.html</a>).<br />(Siren uses the ARE flavour)</p>]]></description>
			<author><![CDATA[null@example.com (Stefan)]]></author>
			<pubDate>Fri, 09 Dec 2011 21:27:59 +0000</pubDate>
			<guid>https://scarabee-software.net/forum/viewtopic.php?pid=759#p759</guid>
		</item>
		<item>
			<title><![CDATA[Re: I want to delete beginning numbers]]></title>
			<link>https://scarabee-software.net/forum/viewtopic.php?pid=425#p425</link>
			<description><![CDATA[<p>Thanks for the feedback. It&#039;s nice to see this community lives. <img src="https://scarabee-software.net/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Stefan)]]></author>
			<pubDate>Tue, 05 Jun 2007 15:07:04 +0000</pubDate>
			<guid>https://scarabee-software.net/forum/viewtopic.php?pid=425#p425</guid>
		</item>
		<item>
			<title><![CDATA[Re: I want to delete beginning numbers]]></title>
			<link>https://scarabee-software.net/forum/viewtopic.php?pid=422#p422</link>
			<description><![CDATA[<p>Beautiful!</p>]]></description>
			<author><![CDATA[null@example.com (RR)]]></author>
			<pubDate>Tue, 05 Jun 2007 10:52:22 +0000</pubDate>
			<guid>https://scarabee-software.net/forum/viewtopic.php?pid=422#p422</guid>
		</item>
		<item>
			<title><![CDATA[I want to delete beginning numbers]]></title>
			<link>https://scarabee-software.net/forum/viewtopic.php?pid=408#p408</link>
			<description><![CDATA[<p>Q:&nbsp; &nbsp;I have many MP3 files with leading track numbers like:</p><p>01-Artist1-Song.mp3<br />002 - Artist 2 - Song 4.mp3<br />3 Artist Song.mp3</p><br /><br /><br /><p>A:&nbsp; &nbsp; Because you have used a few different syntax how you add the track numbers .... I would use the power of regular expressions:</p><p>EXAMPLE:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />01-Artist1-Song.mp3<br />002 - Artist 2 - Song 4.mp3<br />3 Artist Song.mp3</p><br /><p>EXPRESSION:&nbsp; &nbsp; %f(s/(\d+)\s*-*\s*(.+)/$2/)</p><p>RESULT:<br />artist1-song.mp3<br />artist 2 - song 4.mp3<br />artist song.mp3</p><br /><br /><br /><p>EXPLANATION:<br />%f(s/(\d+)\s*-*\s*(.+)/$2/)&nbsp; &nbsp;==&gt;&nbsp; &nbsp;%f( s/&nbsp; &nbsp;(\d+)&nbsp; \s*&nbsp; -*&nbsp; \s*&nbsp; (.+)&nbsp; &nbsp;/$2/&nbsp; &nbsp;)</p><p>%f&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;is the hole file name<br />(s///)&nbsp; &nbsp; &nbsp;is the frame of an reg ex&nbsp; search and replace<br />so....</p><p>(s/&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;is the start of the reg ex<br />(...)&nbsp; &nbsp; &nbsp; &nbsp; is an group. We can refer back to what we have found in this group<br />(\d+)&nbsp; &nbsp; &nbsp; \d&nbsp; means find an digit, .... + means find one or more of this, (...)&nbsp; means group what we have found, this is our back reference No. 1<br />\s*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\s&nbsp; means find an blank/space,.... * means find none or more<br />-*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-&nbsp; &nbsp;means&nbsp; find an dash -,.... * means find none or more<br />\s*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\s&nbsp; means find an blank/space,.... * means find none or more<br />(.+)&nbsp; &nbsp; &nbsp; &nbsp;. means find any char or sign,...+ means find one or more of this, (...)&nbsp; means group what we have found, this is our back reference No. 2<br />/&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; / means to end the reg ex search and start witht the replacement<br />$2&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$2&nbsp; means give back what we have found in our second group<br />/)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /) means this is the end of our journey </p><br /><br /><br /><br /><p>OK, a little reg ex explanation:<br />* means find none or more&nbsp; ==&gt; means the RegEx match (is true) if the character&nbsp; is found... or not.<br />Example:<br />1-A-S<br />1 A-S<br />RegEx: \d-*(.+)&nbsp; find both because we look for an digit followed by an dash or no dash.</p><br /><p>+ means find one or more ==&gt; means the RegEx match (is true) if at least one character is found<br />Example:<br />1-A-S<br />1 A-S<br />RegEx: \d-+(.+)&nbsp; find the first only because we must find at least one occurrence </p><br /><br /><br /><p>Press the F1-key while you are in Siren to read more about.<br />Enjoy Siren,&nbsp; No installation needed, unzip and run. Siren stores it settings into an ini file.<br />------------------------------------------------------------------------------------------------------------</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Siren is a freeware file renaming program<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- portable, highly flexible, powerfully -<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If it&#039;s looking tricky it&#039;s easy to rename with Siren.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.scarabee-software.net/en/siren.html">http://www.scarabee-software.net/en/siren.html</a></p>]]></description>
			<author><![CDATA[null@example.com (Stefan)]]></author>
			<pubDate>Sun, 03 Jun 2007 11:33:09 +0000</pubDate>
			<guid>https://scarabee-software.net/forum/viewtopic.php?pid=408#p408</guid>
		</item>
	</channel>
</rss>
