I have to work with some files/folders which can contain certain prefixes. For example, a file name could be
1.2.0 MyDocfile.doc
1.1.2.3 Anotherfile.txt
I want to be able to remove the prefix and the space after that (1.2.0, 1.1.2.3) and just take the actual file name.
What is the best way to do this ? Regular expressions ?
Can someone please give an example?
In case of optional prefix you need regex:
To get all file names formatted: