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.
 

PressWise

A 30-day Fix for Managed Chaos

As any print professional knows, printing can be managed chaos. Software that solves multiple problems and provides measurable and monetizable value has a direct impact on the bottom-line.

“We reduced order entry costs by about 40%.” Significant savings in a shop that turns about 500 jobs a month.


Learn how…….

   
Back
Top