H.Koning:
--------------------------------------------------------------------------------
I run into the problem that the linenumbers have different sizes (3 digits, 4
digits, etc) and don't sort properly.
--------------------------------------------------------------------------------


As a quick and dirty solution, you can generate the matches with line numbers a
then do a regexp replace on these results:cite:
--------------------------------------------------------------------------------
^([0-9]{1,_4_}: )
*with:*0$1
--------------------------------------------------------------------------------
 this replacement should be run repeatedly, till there aren't any more
matches - then the line numbers should be zero padded, and should be sorted
correctly.

You may want to adjust the "_4_" in the pattern to match the highest number
of digits you have.
the resulting number is one digit longer (i.e. 5 digits if 4 is set.

I hope, I didn't missed anything :-)

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

Odpovedet emailem