hej hej,
I can't succeed to produce a piece of code that does the following: If I have a string with a file name =>
It should be also possible for multiple dates
I tried to write a regex expression to retrieve the format from filename.
but this does not work :( has anybody some experience with this?
I can't succeed to produce a piece of code that does the following: If I have a string with a file name =>
Code:
nameOfFile{yyyy/mm/dd}.txt it becomes nameOfFile2010/06/28.txt
Code:
nameOfFile{yyyy/mm/dd}inMonth{mm/yyyy/dd}
Code:
string[] dateFormats = Regex.Split(fileName, @"(\{.\})*");