I have the following String (This format for the string is generic)
abc_2012-10-18-05-37-23_prasad_hv_Complete
I want to extract only
May be you can try appending the strings again if you exactly know the location of them and if you are sure that locations are constant.