Returning Part of a String
I have the a set of strings - file paths - that follow this general
format:
C:\My Documents\Tools\New Hampshire_1.xls
C:\My Documents\Tools\New Hampshire_11.xls
C:\My Documents\Tools\Vermont_2.xls
So basically the state, underscore, and number.
What code could I write to create a new string with only the New
Hampshire_1 part?
Thanks in advance.
|