Hi there,
I have some files named as below:
input :
1. ABC_123r_EfsrTerhvhb
2. ABC_123456y_OUTERRG
3. ABC_ef567_itreqwrtohg
The "ABC_" is fixed in the starting name of the file. I need to fetch string (numeric value or alphabets) which is between first occurrence of underscore and second occurrence of underscore. The string can contain numeric values or alphabets.
After extracting the desired string from the filename, I need to check whether it is of length = 4 and it should have only numeric values.