How do I add a character at a specific position in a string?
If you want to add a character after the sixth character, simple use the search
^(.{6})
and the replacement
$1,
(Example inserts a ,
)
technically spoken this will replace the first 6 characters of every line with MatchGroup 1 (backreference $1
) followed by a comma.