Предполагается, что ВСЕГДА RS и 192 символа до и 265 после
- Ctrl + H
- Найти что:
(?:^RS.{192}|\G)\K.(?=.{265,}$)
- Заменить на:
# пробел - check Обтекание
- check Регулярное выражение
- UNCHECK
. matches newline
- Заменить все
Объяснение:
(?: # start non capture group
^ # beginning of line
RS # literally RS
.{192} # 192 any character
| # R
\G # restart from last match position
) # end group
\K # forget all we've seen until this position
. # 1 any character
(?= # positive lookahead, zero-length assertion to make sure we have after:
.{265,} # at least 256 any characters
$ # end of line
) # en lookahead
Замена:
% # the character to insert
Задана более короткая линия для иллюстрации:
RSabcdefghijklmnopqrstuvwxyz
Результат для данного примера:
RSabcdefghij qrstuvwxyz
Снимок экрана:
