I need to rename a few hundred files like:
The file list was made with dir >list.txt and that is what I'm editing.
With a macro I would start at a newline, insert 'rename ', find lbr move one space past the end of lbr, do select and find any ASCII char (the 3 in 3M.lbr), back arrow one char, delete all between the rename xxx and 3M.lbr, move 3M.lbr to one space from the old file name THEN find ^n and end.
The problem I'm having is how do you enter regular expression in the find window?
HELP is no help. I use [0-9][a-z][A-Z] and it finds 5XX 86 lines down from the start.
I have Regular Expressions checked and Unix selected. (NOTE: In Configuration there is more to set, but I haven't modified anything. They wouldn't have me roaming around to multiple location to enable regular expressions?)
I've tried:
Then I discovered \w works, but where is the Close after find check box in the Find window?
As it is after a Find the focus is set to the Find window and if I do anything I lose the selected text.
In the old day I would get throw back into the edit window, position the cursor then delete the selected text, now I can't get to the edit window without losing the selected text.
You don't use it, you loss it.
Code: Select all
3M_By_element14_Batch_1.lbr 3M.lbr
With a macro I would start at a newline, insert 'rename ', find lbr move one space past the end of lbr, do select and find any ASCII char (the 3 in 3M.lbr), back arrow one char, delete all between the rename xxx and 3M.lbr, move 3M.lbr to one space from the old file name THEN find ^n and end.
The problem I'm having is how do you enter regular expression in the find window?
HELP is no help. I use [0-9][a-z][A-Z] and it finds 5XX 86 lines down from the start.
I have Regular Expressions checked and Unix selected. (NOTE: In Configuration there is more to set, but I haven't modified anything. They wouldn't have me roaming around to multiple location to enable regular expressions?)
I've tried:
Code: Select all
^[0-9][a-z][A-Z]
"[0-9][a-z][A-Z]"
([0-9][a-z][A-Z])
As it is after a Find the focus is set to the Find window and if I do anything I lose the selected text.
In the old day I would get throw back into the edit window, position the cursor then delete the selected text, now I can't get to the edit window without losing the selected text.
You don't use it, you loss it.