This issue you are having is that .NET regular expressions do not support K
, "discard what has been matched so far".
I believe your regex translates as "match any string of more than ten d
digits, to as many digits as possible, and discard the first 6 and the last 4".
I believe that the .NET-compliant regex
(?<=d{6})d+(?=d{4})
achieves the same thing. Note that the negative lookahead/behind for no-more-d
s is not necessary as the d+
is greedy - the engine already will try to match as many digits as possible.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…