Get string from between two characters

前端 未结 7 1180
情歌与酒
情歌与酒 2021-01-27 04:28

I need to get string from between two characters. I have this

S= \"10:21:35 |Manipulation       |Mémoire centrale   |MAJ Registre mémoire\"

a

7条回答
  •  说谎
    说谎 (楼主)
    2021-01-27 04:59

    You can also use string.substring and get the required output as

    string a =s.substring(0,8)
    

    Like this u can assign for the one you want

提交回复
热议问题