I need a regular expression to get date out of the following String
anything-2011.01.17-16.50.19.xml
Is this a correct one
^\\
Try with:
^.*?-([0-9.]+)-([0-9.]+)\..*$
You should also accept your recent questions.