find blanks in the 105th postion and replace with a zero

General questions about using TextPad

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

Post Reply
bensonuser
Posts: 10
Joined: Wed Mar 12, 2008 2:33 pm

find blanks in the 105th postion and replace with a zero

Post by bensonuser »

I am trying to replace all blanks in the 105th position with a zero but i am not doing something right.

Here is an example of a line i am working on. the 105th position is the blank in front of the 4. Right now the 4 gets replaced with a 0.

TROIS-RIVIERES SUBARU 4 02 D1


this is my find expression:

^(.{104}[[:blank:]]).

and my replace expression:

\10

it is replacing the next character rather than replacing the blank.

Help!
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

You are capturing too much. Try
^(.{104})[[:blank:]]
Post Reply