0-Padded sequence number

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

0-Padded sequence number

Post by chrisjj »

A replacement expression with \i01 doesn't yield what I'd hope (01,02...). Anyone know one that does? Thanks.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Turn on block select mode and use Edit | Fill Block...
Select With numbers and Leading zeros.
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

Thanks, but the replaced strings are not in a block.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

use \i and add the few 0s manually.

ben_josephs' solution only helps if the numbers are in consecutive lines and also appear at the same column.
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

MudGuard wrote:use \i and add the few 0s manually.
If anyone can answer the question, I'd be grateful. Thanks.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

If the numbers aren't in a block then MudGuard's solution is the best you can do with the functionality currently available with TextPad, I'm afraid. Regular expressions can help, but it's a bit tedious.
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Post by chrisjj »

Thanks.
Post Reply