【发布时间】:2014-09-18 04:01:52
【问题描述】:
我想剪掉sring的结尾:
输入字符串:
/O=Shore Tel/OU=CANDY/cn=Recipients/cn=PAgricola
/O=Shore Tel/OU=CANDY/cn=Recipients/cn=YAchmanov
/o=Shore Tel/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Mukul Agrawal2f2
/o=Shore Tel/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Nick Aiello816
输出字符串:
/O=Shore Tel/OU=CANDY/cn=Recipients
/O=Shore Tel/OU=CANDY/cn=Recipients
/o=Shore Tel/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients
/o=Shore Tel/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients
你能给我一些建议吗?
【问题讨论】:
-
搜索关于 String.Split、String.LastIndexOf、String.Substring。这就是解决难题所需的全部知识。
-
我的问题和题目不同。我看到了
标签: c# string winforms substring substr