问题描述
Hello all
我需要解析一个巨大的字符串
Key< Delim1>值< Delim2>密钥< Delim1>值< Delim2>键< Delim1>
值< Delim3>
键< Delim1>值< Delim2>密钥< Delim1>值< Delim2>键< Delim1>
值< Delim3>
重复几十万次
< Delim1>分配Key,Value对
< Delim2>分成两个不同的Key,Value对
< Delim2>分隔记录。
我需要获得Key Value对并用一个表格填充
信息。
.NET正则表达式是否值得,以及如何以干净优化的方式进行
。
谢谢
-Ravi Singh
Hello all
I have a huge string that I need to parse
Key <Delim1> Value <Delim2> Key <Delim1> Value <Delim2> Key <Delim1>
Value <Delim3>
Key <Delim1> Value <Delim2> Key <Delim1> Value <Delim2> Key <Delim1>
Value <Delim3>
repeat for a couple hundred thousand times
The <Delim1> seprates the Key, Value pair
<Delim2> seprates two different Key,Value pairs
<Delim2> seprates records.
I need to get the Key Value pairs and populate a table with that
information.
Would the .NET regular expressions be worth while and how would I go
about doing it in a clean optimized fashion.
Thanks
-Ravi Singh
推荐答案
这篇关于使用RE进行解析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!