本文介绍了如何在vb.net中使用某些正则表达式匹配拆分段落中的句子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 输入 2015-04-22 JV RM - 保存您的清单2014-12-28 SV查看单词 - 图片在mail2014-12-21 SV参见word document02014-12-15 SV参见word2014-11-09 SV这里开始编程的第一个小项目。请参阅attach2014-11-09 SV中的pdf首先在这里开始编程的小项目。请参阅附件中的pdf-2014-11-09 SV首先在这里开始编程的小项目。请参阅attach2014-11-09 SV中的pdf首先在这里开始编程的小项目。请参阅附录中的pdf-2014-12-15 SV参见word2014-11-09 SV这里开始编程的第一个小项目。请参阅attach2014-11-09 SV中的pdf首先在这里开始编程的小项目 我需要将其拆分为 2015-04 -22 JV RM - 保存您的清单 2014-12-28 SV查看单词 - 图片的邮件 2014-12-21 SV参见word document0 2014-12-15 SV见字 2014-11-09 SV在这里开始编程的第一个小项目。请参阅附件中的pdf 2014-11-09 SV首先在这里开始编程的小项目。请参阅pdf in attach- 2014-11-09 SV首先在这里开始编程的小项目。请参阅附件中的pdf 2014-11-09 SV首先在这里开始编程的小项目。请参阅pdf in attach- 2014-12-15 SV见字 2014-11-09 SV首先在这里开始编程的小项目。请参阅随附的pdf 2014-11-09 SV开始编程的第一个小项目 像这样我需要 私有 Sub Cmd_Rem_Click(发件人 As 对象,e As EventArgs)句柄 Cmd_Rem.Click Dim input As String = Txt_Commantaarintern.Text Dim result As String ()= Regex.Split(输入, (?< = [' A-Za-z0-9] [\。\!\?])\ + +(?= [AZ])) 对于 每个 s 作为 字符串 在结果 Console.WriteLine(s ) Txt_After_Remove .Text = s 下一页 结束 Sub 请指导我在哪里停留解决方案 INPUT2015-04-22 JV RM - Save your list here 2014-12-28 SV See Word - Image in the mail2014-12-21 SV See word document02014-12-15 SV See word2014-11-09 SV First small items to start programming here. See the pdf in attach2014-11-09 SV First small items to start programming here. See the pdf in attach-2014-11-09 SV First small items to start programming here. See the pdf in attach2014-11-09 SV First small items to start programming here. See the pdf in attach-2014-12-15 SV See word2014-11-09 SV First small items to start programming here. See the pdf in attach2014-11-09 SV First small items to start programming hereI neeed to split this as 2015-04-22 JV RM - Save your list here 2014-12-28 SV See Word - Image in the mail2014-12-21 SV See word document02014-12-15 SV See word2014-11-09 SV First small items to start programming here. See the pdf in attach2014-11-09 SV First small items to start programming here. See the pdf in attach-2014-11-09 SV First small items to start programming here. See the pdf in attach2014-11-09 SV First small items to start programming here. See the pdf in attach-2014-12-15 SV See word2014-11-09 SV First small items to start programming here. See the pdf in attach2014-11-09 SV First small items to start programming hereLike this I need Private Sub Cmd_Rem_Click(sender As Object, e As EventArgs) Handles Cmd_Rem.Click Dim input As String = Txt_Commantaarintern.Text Dim result As String() = Regex.Split(input, "(?<=['""A-Za-z0-9][\.\!\?])\s+(?=[A-Z])") For Each s As String In result Console.WriteLine(s)Txt_After_Remove .Text =s Next End SubPlease Guide me Where i Stuck 解决方案 这篇关于如何在vb.net中使用某些正则表达式匹配拆分段落中的句子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-27 06:10