^ # beginning of line
\h+ # 1 or more horizontal spaces
\d+ # 1 or more digits
.+ # 1 or more any character
\R # any kind of linebreak (i.e. \r, \n, \r\n)
(*SKIP)(*F) # skip previous match and declare a fail
| # OR
.+ # 1 or more any character
\R # any kind of linebreak (i.e. \r, \n, \r\n)
^\h+\d+.+\R(*SKIP)(*F)|.+\R
LEAVE EMPTY
. matches newline
解释:
替代品:
截图(之前):
截图(之后):