【发布时间】:2018-02-04 08:05:52
【问题描述】:
抱歉,我很难为这篇文章找到合适的标题。如果标题不清楚,请致歉。
我有很多字符串遵循这样的格式
"Application has been dispatched to the client 5 business day(s) ago. Signed application has not been received"
我想将其子串到数字 5 。
所以结果是
"Application has been dispatched to the client"
但是,我并不总是知道数值前有多少个字符
有些字符串有不同的消息,但结构相似。总有一个数字。
另一个例子
"Client signed the application 13 day(s) ago."
现在在这个中,我想得到以下输出
"Client signed the application"
基本上,我需要一种方法来获取直到数值的所有内容。
我该怎么做?
希望这很清楚,并在此先感谢!
干杯!
【问题讨论】:
-
stackoverflow.com/questions/3732808/… 这个问题的答案应该可以帮助您继续前进..
标签: c#