Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用正则表达式(或 С# 函数)在一个变量中剪切 TEXT MESSAGE 并从此文本中剪切第二个变量 USERNAME?
{"messages": [{"text": "TEXT MESSAGE", "channel": "main": "from": "USERNAME", "fromid": 651765, "t": 1379970985409, "tc": "f16d7e "}}}
您正在尝试做的事情称为反序列化。这是一个相关的 SE 问题:
使用 C# 反序列化 JSON