問題:
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