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.
HJH3123|||38|323|h38|0|84 [[[MATCH]]] HJH3123|332|44|38|323|h38|0|84 HJH3123|4431||38|323|h38|0|84 HJH3123|4431|33|38||h38|0|84
我只想找|| 前三| 每条新线。
我一直试图解决这个问题,但收效甚微。任何帮助将不胜感激。
因此,以下正则表达式似乎可以完成这项工作:
(?m)^[^|]*\|\|
解释:
(?m)
m
^$
^
[^|]*
|
\|\|
||
在线演示