如何在某个角色后获得所有内容? - How to get everything after a certain character?

问题:

I've got a string and I'd like to get everything after a certain value.我有一个字符串,我想在某个值之后获得所有内容。 The string always starts off with a set of numbers and then an underscore.字符串总是以一组数字开始,然后是下划线。 I'd like to get the rest of the string after the underscore.我想在下划线之后得到字符串的其余部分。 So for example if I have the following strings and what I'd like returned:例如,如果我有以下字符串以及我想要返回的内容:

"123_String" -> "String"
"233718_This_is_a_string" -> "This_is_a_string"
"83_Another Example" -> "Another Example"

How can I go about doing something like this?我该如何去做这样的事情?


解决方案:

参考一: https://en.stackoom.com/question/lr5Z
参考二: https://stackoom.com/question/lr5Z
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章