final String r = a.replaceAll(" .*?(?=_)", "");
se stampi la r, dava output:
000003023_AggregateStopLossLimit_W_2012-12-22.PDF
final String r = a.replaceAll(" .*?(?=_)", "");
se stampi la r, dava output:
000003023_AggregateStopLossLimit_W_2012-12-22.PDF