How to Copy the value from the row above into blank cells

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
sgtnobleusa
Posts: 1
Joined: Tue Feb 09, 2010 4:36 pm

How to Copy the value from the row above into blank cells

Post by sgtnobleusa »

:?:I would like to copy the value in column 1 down until it reaches a new value and then copy that etc until it reaches the end of column.
Example:

Column1*********Colmun 2
BBKHSP305*******data here


BBKHIN310******* data here


Result should look like this :arrow:
Column1**********Colmun 2
BBKHSP305********data here
BBKHSP305********data here
BBKHSP305********data here
BBKHIN310********data here
BBKHIN310********data here

Thank you
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

This works in single step replacement mode:

Find: ^(.+)\n\n
Replace with: \1\n\1\n

Use the following settings:
-----------------------------------------
[X] Regular expression
Find Next
Replace
-----------------------------------------
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-----------------------------------------
Hope this was helpful.............good luck,
Bob
Post Reply