Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (***NEW HOME PAGE*** "http://pfrank.atwebpages.com")
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Basic text deletion

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions
View previous topic :: View next topic  
Author Message
tareyton



Joined: 01 Feb 2009
Posts: 3

PostPosted: Sun Feb 01, 2009 3:58 pm    Post subject: Basic text deletion Reply with quote

OK I am sorry but I can't figure out what according to the Help file should be the most basic of tasks.

I have the following file

-AC-DC- songname.mp3

I want to rename it to

songname.mp3

I tried the following

Search: '-'
Replace:

the result is a blank file name.

What am i doing wrong?

James
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Mon Feb 02, 2009 12:41 am    Post subject: Reply with quote

The 'dash' character is a special character in regular expressions.

You have to prevent the dash from being interpreted as a special character either by enclosing it in square brackets
e.g. [-]

or preceeding it with a backslash character

e.g. \-

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tareyton



Joined: 01 Feb 2009
Posts: 3

PostPosted: Mon Feb 02, 2009 1:24 am    Post subject: Reply with quote

thanks. So I have to insert brackets before each '-' then remove everything between the brackets?

Even in files without '-" I still can't get the replace function to work. Anytime I place Replace: in the Replace pattern column it gives me a blank file name.

For example I tried to duplicate the example from the help file

soccer1.avi

Search: 'soccer'
Replace: 'football'

result is a blank file name.

I am putting the search command in the Search Pattern column and the replace command in the replace pattern columns.

James
Back to top
View user's profile Send private message
tareyton



Joined: 01 Feb 2009
Posts: 3

PostPosted: Mon Feb 02, 2009 1:55 am    Post subject: Reply with quote

Man I am dumb I just figured it out you don't actually have to type the words search and replace
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com