Answer the question
In order to leave comments, you need to log in
How to parse filename in java (groovy)?
Hello everyone, there is a certain file name from numbers and letters of the ddddyy_name.xls format. You need to count the first 4 digits and the second two to use them in the code. How to do it?
I do it like this:
String year = new String(p_filename.substring(1,4));
String month = new String(p_filename.substring(5,6));
But it doesn't come out. What is the problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question