【发布时间】:2017-02-14 22:52:41
【问题描述】:
如果搜索关键字存在于该列中,我想删除该行中的一个列。
我的输入将是多行输入,比如列分隔符是:
:I want to remove a : column in the line : if the search key word exists within : that column
:I will : be using : word as : the key word
:colon will : be used : as the : delimiter
搜索关键字是word
我的输出应该是
:I want to remove a : column in the line : that column:
:I will : be using :
:colon will : be used : as the : delimiter
【问题讨论】:
-
与以前的版本相比,您的输入行不以
:结尾。这实际上变成了一个新问题。考虑也将:添加到此版本中,如果您是,请提出一个新问题无法修改解决方案 -
还提到是否需要删除与搜索关键字匹配的所有列或仅第一个匹配项