Hi,

PSPad is being mentioned occasionally on the forum for one of my favorite
freeware programs. It seems that regular expressions are supported in PSPad
search/replace, which is very cool. Does PSPad also support incrementing in the
replace operation? As a simple example, say I want to put a number in each line
starting at the 4rd character position, and I want that number to start at 10
and increment by 5.
Search: ^\(...\)
Replace: \1\i{10,5}

... where I have made up an increment operator (\i) that starts at 10 and
increments by 5. For example:
abcdef
ghijkl
mnopqr
stuvwx
... 
  becomes:
abc10def
ghi15jlk
mno20pqr
stu25vwx
...

Can this be done in PSPad?

Thanks,
John B.

-- 
<http://forum.pspad.com/read.php?2,35714,35714>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem