Search found 12 matches

by C0ppert0p
Mon Dec 02, 2013 11:45 pm
Forum: General
Topic: Concatenate line 1 to the end of line 2
Replies: 2
Views: 709

Concatenate line 1 to the end of line 2

The perfect solution.
and a teachable moment :)

Thanks Ben
by C0ppert0p
Mon Dec 02, 2013 9:59 pm
Forum: General
Topic: Macro editor
Replies: 5
Views: 1503

Macro editor

Does anyone know how to edit Textpad macro's?
Having to re-record a macro to add changes is a huge pain.
I saw a seven year old post that said the macros cannot be edited but this can't still be true can it?
by C0ppert0p
Mon Dec 02, 2013 9:00 pm
Forum: General
Topic: Concatenate line 1 to the end of line 2
Replies: 2
Views: 709

Concatenate line 1 to the end of line 2

When the pattern of line one is ^[OAT][OAT][OAT]:
and pattern of line two is ^......13

I want to be able to concatenate line 1 to line 2:
eg:

OTA:
10/12/13

becomes:
OTA:10/13/13

I can do this in two steps but I'd like to do it in one
by C0ppert0p
Fri May 17, 2013 8:59 pm
Forum: General
Topic: inserting spaces into specific locations
Replies: 1
Views: 601

inserting spaces into specific locations

Hi,
I have a file with variable length records.
I want to adjust each record to make them all the same length
I'm trying to figure out is to how to insert spaces at the location infront of the last value on each line
xxxxxxx___yyyyy___zzz.zzz
xxxxxxx___yyyyyyyyyy___zzzz.zzz
xxxxxxx___yyyyyyyy ...
by C0ppert0p
Tue May 14, 2013 9:08 pm
Forum: General
Topic: Search and replace using "or"
Replies: 2
Views: 748

Coolio!
I was playing with:
(RESTORE|SAVE|whatever)(.*$)
/t/t/t/t/t/t/1/2)

Your's is more elegant.
by C0ppert0p
Tue May 14, 2013 7:08 pm
Forum: General
Topic: Search and replace using "or"
Replies: 2
Views: 748

Search and replace using "or"

Hi, this has most likely been asked, but I can't phrase the right query to find an answer:
I want to replace, SEND or RECEIVE or ... with \t\t\t\t\t\1
ie insert five tabs in front of any occurrence of multiple patterns
by C0ppert0p
Thu Jan 31, 2013 8:52 pm
Forum: General
Topic: shift columns using regex
Replies: 4
Views: 715

Sure thing:

before


data more data more data more data more data
data more data more data more data more data more data more data more data more data more data more data more data
data more data more data more data more data more data more data more data more data
data more data more data more ...
by C0ppert0p
Wed Jan 30, 2013 3:18 am
Forum: General
Topic: shift columns using regex
Replies: 4
Views: 715

shift columns using regex

I want to be able to shift everything from position x to the end of the line , back to position x. using regex
This can be done with block mode; selecting everything after a certain position and then using the reduce indent button.

I have huge files that may have lines anywhere from 20 to 600 ...
by C0ppert0p
Wed Jan 30, 2013 2:40 am
Forum: General
Topic: moving the first occurance of a pattern to a fixed position
Replies: 2
Views: 540

Awsome, it worked very nicely.
Thanks
by C0ppert0p
Sat Jan 26, 2013 12:55 am
Forum: General
Topic: moving the first occurance of a pattern to a fixed position
Replies: 2
Views: 540

moving the first occurance of a pattern to a fixed position

I have a list of keywords followed by data:

Date:1/25/2013 10:37:09 AM
Event ID:902
Task Category:None
Level:Information
Keywords:Classic
User:N/A

I want to move everything following the first colon to my tab location, (40)
select ^(.*:)(.*)
replace /1/t/2
This seemed to work until I realized ...
by C0ppert0p
Fri Jan 25, 2013 10:11 pm
Forum: General
Topic: concatenate to previous line
Replies: 2
Views: 536

That was the solution I was hoping for.
Cheers!
by C0ppert0p
Fri Jan 25, 2013 2:59 am
Forum: General
Topic: concatenate to previous line
Replies: 2
Views: 536

concatenate to previous line

I have a need to concatenate lines matching a pattern to be concatenated with the preceding line.
Example:

INPUT

Description: Process STORE.EXE (PID=3364).
(Server name | Roles | Enabled | Reachability.........
In-site:
servername1.local CDG 1 7 6 1 0 1 1 1 2
servername2.local CDG 1 7 7 1 0 1 1 7 ...