我正在使用C#.NET开发一个应用程序,如果用户输入的内容包含连字符“-”,则需要将连字符“-”的相邻字符连接起来。例如,如果用户输入:
A-B-C then i want it to be replaced with ABC
AB-CD then i want it to be replaced like BC
ABC-D-E then i want it to be replaced like CDE
AB-CD-K then i want it to be replaced like BC and DK both separated by keyword and
在获得此信息后,我需要准备查询数据库。 我希望我已经清楚地表述了问题,但如果需要更多解释,请让我知道。 非常感谢您的帮助。 谢谢, Devjosh
ABC-D-E
产生什么?CD
和DE
吗?这很令人困惑。 - Aliostad