Hi,
Thank you for your reply, however, I can't seem to get it working...Could you shine some light on this bit for me? I just don't get the concept of how to make the code work. I opened up Editpad pro, and opened the search, copied the regex code you gave me into the search box, and then hit replace...Nothing worked.
Let me shed a bit of light here, I have a text file that I made like this, from an Ms-Dos box, I did: "Dir /x/b>files.txt" (without quotes) and got a text file with the contents of that directory. Now I am trying to take that text file and shorten all the filenames in that text file down to 28 characters including the period and three letter extension. I want the filenames to be shortend like this: From the left of the dot (before the extension) I want to cut the filename. Example: If the filename was:
Code:
A very interesting filename that needs to be shortend.exe
It would now be:
Code:
A very interesting file.exe
The above codes show the long filename and the one below that shows it cut down to only 28 characters INCLUDING the Extension.
And remember the filename will include parenthesis ( ), brackets [ ] spaces, and or numbers so the reg expression must be able to interept that as well.
Can you help further?
Tia for your time, and efforts!
-Brian
__________________
Made2Own
Last edited by Brian07002; 08-19-2006 at 12:47 AM..
|