Hello @chuck-ballinger,
An other possibility is to use regular expressions !
Let’s suppose that you want to insert a X character, in column n, on any line of your file :
Open the Replace dialog ( Ctrl + H )
OPTIONS Wrap around and Regular expression checked
SEARCH (?-s)^.{n-1}\K\x20+(?=(X))|^.{0,n-1}\K ( Replace the expression n-1 with the appropriate number ! )
REPLACE ?1:n spacesX
ACTION click TWICE on the Replace All button
So, assuming the initial text, below, with a first blank line :
1 12 123 1234 12345 123456 1234567 12345678 123456789 1234567890 12345678901 123456789012 1234567890123 12345678901234 123456789012345After two click on Replace All, we get the text :
X 1 X 12 X 123 X 1234 X 12345 X 123456 X 1234567 X 12345678 X 123456789X 123456789X0 123456789X01 123456789X012 123456789X0123 123456789X01234 123456789X012345If you like that solution, I’ll give you, next time, some details on that regex S/R !
Best Regards,
guy038