所以我有一个包含尖括号的长字符串,我希望从中提取文本部分.
string exampleString = "<1>text1</1><27>text27</27><3>text3</3>";
Run Code Online (Sandbox Code Playgroud)
我希望能够得到这个
1 = "text1"
27 = "text27"
3 = "text3"
Run Code Online (Sandbox Code Playgroud)
我怎样才能轻松获得这个?我无法想出一个非黑客的方法来做到这一点.
谢谢.
c# ×1