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.
我有值由管道符号分隔的文本文件|
|
data|baloney|198237423984732|cheese|more cheese|98746464
我想删除前三列,例如我剩下
cheese|more cheese|98746464
替换这个正则表达式:
^([^|]*\|){3}
为空字符串。
这将根据您的示例为您提取最后三列。
([^|]*\|){2}[^|]*$
在这里查看它的实际应用。