在notepad ++文档中,我有一组用逗号分隔的数字。 我想在每10个逗号/或10个数字后设置一个新行。我该怎么办?
有此列表
19406,20894,21138,21140,21142,21775,22097,34420,35455,35873,35892,35965,37373,37378,37380,37391,37398,37404,37406,37452,37454,37456,37849,37861,38080,39039,42445
下面需要。
19406,20894,21138,21140,21142,21775,22097,34420,35455,35873,
35892,35965,37373,37378,37380,37391,37398,37404,37406,37452,
37454,37456,37849,37861,38080,39039,42445
答案 0 :(得分:0)
^(?:\d+,){10}\K
\n
#您可以将\r\n
用于Windows换行符说明:
^ # beginning of line
(?: # non capture group
\d+ # 1 or more digits
, # a comma
){10} # end group, appears 10 times
\K # forget all we have seen until this position