I have a string = "file_20200604170659.DAT,file_20200604170659.TRG,file_20200604170659.CSV"
I need to write a Regular Expression to get the file that contains the given output type.
For Example: If I ask for CVS, I just want to get file_20200604170659.CSV from the above string.