Is it possible to use the value of a regex in the \"FIND\" part of a find/replace in Notepad++ ?
Here\'s what i have :
FIND: ^.{105}.*(.)
REPLACE: \\r\\
You could do:
Find what: ^(.{105}).
Replace with: $1\r\n
Make sure you have checked Regular expression
BUT NOT dot matches newline
then click on Replace all
This will capture in group 1 the first 105 characters in each line.
I think you want something along these lines:
Find: ^(.{105}.)
Replace: \1\r\n
You need to wrap the thing in a capture group otherwise your ^
will force it to only match the beginning of the line. You'll also need to include the first capture group as part of the replacement string so it won't nuke the entire matching.