Seeking Reg. expression to select everything after first underscore in file name.

PDL

Well-known member
I am seeking a regular expression that will select everything in a file name after the first underscore in the file name. There may be several underscores in the filename. If there are more than one underscore in the file name the expression .*_(.*) selects everything after the last underscore. So, file "1234_info_filename.pdf" will return "filename.pdf", I need it to return "info_filename.pdf". Thanks for any input.
 
   
Back
Top