【发布时间】:2018-01-20 03:06:46
【问题描述】:
最后,我想替换 " 中包含的所有 \t
我目前正在Regex101 尝试我的正则表达式的各种迭代......这是我迄今为止最接近的......
originString = blah\t\"blah\tblah\"\t\"blah\"\tblah\tblah\t\"blah\tblah\t\tblah\t\"\t\"\tbleh\"
regex = \t?+\"{1}[^"]?+([\t])?+[^"]?+\"
\t?+ maybe one or more tab
\"{1} a double quote
[^"]?+ anything but a double quote
([\t])?+ capture all the tabs
[^"]?+ anything but a double quote
\"{1} a double quote
我的逻辑有缺陷! 我需要您的帮助来对制表符进行分组。
【问题讨论】:
标签: c# regex regex-group