Is this possible in textpad?
Most of my data in column 120 to 150 in my file contains spaces. Just want to delete these 30 bytes/spaces basically moving column 151 as the new COLUMN 120 for the affected rows.
I don't want to do a block mode select since I don't want to lose some of the rows that contains data.
TIA!
Search from column x to column y
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
"Column 120 to 150" and "moving column 151 as the new COLUMN 120" imply 31 characters, not 30.
Assuming 31 is correct:
Assuming 31 is correct:
This assumes you are using Posix regular expression syntax:Find what: ^(.{119}).{31}
Replace with: \1
[X] Regular expression
Replace All
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
Do you mean you want to remove those columns only if they are all spaces?
If so, try
If so, try
This assumes you are using Posix regular expression syntax:Find what: ^(.{119})_{31} [Replace the underscore with a space]
Replace with: \1
[X] Regular expression
Replace All
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax