我想从字符串中获取最后5个数字/字符。例如,我想从"I will be going to school in 2011!"获取"2011!"。
"I will be going to school in 2011!"
"2011!"
有什么想法吗?我知道Visual Basic有Right(string, 5);这对我不起作用,并给了我一个错误。
Right(string, 5)
https://stackoverflow.com/questions/2813505
相似问题