How do i put separator after each 5 string in 20 random strings?
Solution 1:
- Ctrl+H
- Find what:
.{5}\K(?!$)
- Replace with:
-
- CHECK Wrap around
- CHECK Regular expression
-
UNCHECK
. matches newline
- Replace all
Explanation:
.{5} # 5 any character but newline
\K # forget all we have seen until this position
(?!$) # negative lookahead, make we haven't end of line after
Screenshot (before):
Screenshot (after):