小编Deb*_*ode的帖子

如何从字符串中分割数据?

我怎样才能从字符串中分割数据?

我有这样的字符串,

Url=http://www.yahoo.com UrlImage=http://l.yimg.com/a/i/ww/met/yahoo_logo_in_061509.png UrlTitle=Yahoo! India UrlDescription=Welcome to Yahoo!, the world's most visited home page. Quickly find what you're searching for, get in touch with friends and stay in-the-know with the latest news and information.
Run Code Online (Sandbox Code Playgroud)

我想要将这些信息拆分为

http://www.yahoo.com

http://l.yimg.com/a/i/ww/met/yahoo_logo_in_061509.png

Yahoo! India

Welcome to Yahoo!, the world's most visited home page. Quickly find what you're searching for, get in touch with friends and stay in-the-know with the latest news and information.
Run Code Online (Sandbox Code Playgroud)

如何将上面的字符串分成这四个部分并保存到每个部分的临时变量中?

string url = http://www.yahoo.com

string urlImage = http://l.yimg.com/a/i/ww/met/yahoo_logo_in_061509.png

string urlTitle …

c# string split

0
推荐指数
1
解决办法
1128
查看次数

标签 统计

c# ×1

split ×1

string ×1