Splitting a String in Java with underscore as delimiter

后端 未结 7 1109
野的像风
野的像风 2021-01-13 00:49

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

7条回答
  •  梦谈多话
    2021-01-13 01:14

    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.

提交回复
热议问题