I need to parse filenames so that I can import them into mySQL. The files are named like this:
Test 000.txt
My Test 002.txt
The-Test.txt
000Test 222.txt
Test 1.txt
Test 04.txt
I would like to parse them so I can import the text part and numeric part separately.
Name Version
---- -------
Test 0
My Test 2
The-Test
000Test 222
Test 1
Test 4
The version part will always be the numbers before the file extension.
1 Answer