如何提取以“;"分隔的子字符串在C#中 [英] How to extract substring separated by ";" in C#

查看:103
本文介绍了如何提取以“;"分隔的子字符串在C#中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须解析一个文本文件,该文件的一行为:ToList=abc@gmail.com; xyz@gmail.com; dom@yahoo.in; iter@outlook.com
每当"ToList ="如果在文本文件中遇到电子邮件",则应提取该行中的不同电子邮件ID,并以;"分隔.并放入Outlook邮件的收件人"列表.

I have to parse a textfile which has a line as : ToList=abc@gmail.com;xyz@gmail.com;dom@yahoo.in; iter@outlook.com
Whenever "ToList=" is encountered in the text file, the different email id in that line should be extracted which is separated by ";" and put in the Recepient list of outlook mail.

推荐答案

我必须解析文本文件,然后提取字符串.我不能使用"string sString"

I have to parse text file and then extract the string. I can't use "string sString"

如何从文本文件中提取


这篇关于如何提取以“;"分隔的子字符串在C#中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆