Page 1 of 1

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

Posted: Sun Feb 28, 2010 3:44 pm
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!

Posted: Sun Feb 28, 2010 4:37 pm
by ben_josephs
You are capturing too much. Try
^(.{104})[[:blank:]]