View previous topic :: View next topic |
Author |
Message |
tareyton
Joined: 01 Feb 2009 Posts: 3
|
Posted: Sun Feb 01, 2009 3:58 pm Post subject: Basic text deletion |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Mon Feb 02, 2009 12:41 am Post subject: |
|
|
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 |
|
 |
tareyton
Joined: 01 Feb 2009 Posts: 3
|
Posted: Mon Feb 02, 2009 1:24 am Post subject: |
|
|
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 |
|
 |
tareyton
Joined: 01 Feb 2009 Posts: 3
|
Posted: Mon Feb 02, 2009 1:55 am Post subject: |
|
|
Man I am dumb I just figured it out you don't actually have to type the words search and replace |
|
Back to top |
|
 |
|