Search found 18 matches

by agent86
Wed Jul 16, 2014 3:57 pm
Forum: General
Topic: Turn a multi line file into a single line file
Replies: 2
Views: 541

I figured it out...

Based on the following post:

http://forums.textpad.com/viewtopic.php ... light=crlf

Configure | P references | Editor

[X] Use POSIX regular expression syntax

Find what: (.)\n(.)
Replace with: blank

[X] Regular expression

Replace All
by agent86
Wed Jul 16, 2014 2:37 pm
Forum: General
Topic: Turn a multi line file into a single line file
Replies: 2
Views: 541

Turn a multi line file into a single line file

I have a 2000+ line file that needs to be one line long. How can I remove all the CRLFs at the end of each line?
by agent86
Sun Dec 01, 2013 8:36 pm
Forum: General
Topic: Remove text enclosed by < and > as well as the < an
Replies: 2
Views: 575

I figured the short string out...

I figured out the short string. I will apply it to the longer string and see if it works as well.


ReportInstance = 1

strSearchString = "\<ReportTable efrm" & ReportInstance & "\>"
by agent86
Sun Dec 01, 2013 5:15 pm
Forum: General
Topic: Remove text enclosed by < and > as well as the < an
Replies: 2
Views: 575

Remove text enclosed by < and > as well as the < an

I need to replace a string...

<ReportTable1>[EmbeddedReport1]efrm goes here[/EmbeddedReport1]

with empty string. So I guess it might better be described as finding and deleting the string<ReportTable1>[EmbeddedReport1]efrm goes here[/EmbeddedReport1]

The number 1 could be any number from 1-99 ...
by agent86
Fri Oct 11, 2013 1:52 am
Forum: General
Topic: RTF or text file
Replies: 1
Views: 434

RTF or text file

I use a program that saves its output files as rtf encoded files that have a .txt extension. The weird thing is that if I open the file in TextPad as a text file and do a "save as" then change the extension to .rtf it opens with MS Word as a rtf.

If I just rename the file changing its extension to ...
by agent86
Fri May 15, 2009 6:05 pm
Forum: General
Topic: Add phrase to blank line above certain lines...
Replies: 2
Views: 327

Thank you..

I love this forum!
by agent86
Fri May 15, 2009 1:29 am
Forum: General
Topic: Add phrase to blank line above certain lines...
Replies: 2
Views: 327

Add phrase to blank line above certain lines...

I want to do the following... insert '***END***' on the blank line above any line that starts with 'MSH|^~\'

before:

MSH|^~\&|CELLNETIX|PATHOLOGY|||
PV1|1||||||KOAD01^Koala^Diana^K
ORC|NW||P09-035258||||||2009050
OBR|1||P09-035258|GYN^PAP Smear

MSH|^~\&|CELLNETIX|PATHOLOGY|||
PV1|1||||||DANA01 ...
by agent86
Tue Dec 30, 2008 3:12 am
Forum: General
Topic: Insert '***End***' before...
Replies: 2
Views: 378

Insert '***End***' before...

Every time I find a line that starts with 'MSH|^~\&|' I want to insert a line before that line that contains '***End***'. For example:

MSH|^~\&|POWERP
PID|1||||SPROSS
PV1|1||||||1693
ORC|SC|FN080111
MSH|^~\&|POWERP
PID|1||||SPROSS
PV1|1||||||1693
ORC|SC|FN080111
MSH|^~\&|POWERP
PID|1||||SPROSS
PV1 ...
by agent86
Mon Feb 11, 2008 7:17 am
Forum: General
Topic: Insert ascii 28 and carriage return linefeed
Replies: 1
Views: 305

Insert ascii 28 and carriage return linefeed

I have a text file and everytime I encounter "MSH|", I want to preceede it with an ascii 28 ( file seperator) and a carriage return/linefeed so I get the following results.

before:

OBX|135|FT|REPORT|135|
MSH|^~\&|CELLNETIX|PATHOLOGY|||200801121247||ORU^R01|

after:

OBX|135|FT|REPORT|135|

MSH ...
by agent86
Thu Oct 11, 2007 7:53 pm
Forum: General
Topic: String does not equal "C"
Replies: 1
Views: 307

String does not equal "C"

Newbie...

String does not equal "C"
by agent86
Thu Jul 05, 2007 7:51 pm
Forum: General
Topic: Locate ascii 160
Replies: 1
Views: 209

Locate ascii 160

How can I find an ascii 160 in a text file?
by agent86
Thu Jun 07, 2007 3:33 pm
Forum: General
Topic: Find next line with spaces in positions 1-5, and blank lines
Replies: 2
Views: 433

Thank you...

...
by agent86
Thu Jun 07, 2007 7:15 am
Forum: General
Topic: Find next line with spaces in positions 1-5, and blank lines
Replies: 2
Views: 433

Find next line with spaces in positions 1-5, and blank lines

#1. How can I search and find the next line that has 5 spaces at the beginning of the line.

#2. How do I find the next blank line?
by agent86
Thu May 10, 2007 10:21 pm
Forum: General
Topic: Sort based on length of line and alphabetical each length
Replies: 1
Views: 334

Sort based on length of line and alphabetical each length

I need to sort a text file, longest line length to shortest, and alphabetical with the list for each length that is the same length. Any ideas?

Thanks
by agent86
Mon Sep 11, 2006 8:41 pm
Forum: General
Topic: delete excessive blank lines...
Replies: 3
Views: 424

great. that works, but how...

I now see there are lines with just spaces in them from 2-4, maybe more. What do I do if the adjacent lines just have spaces. It appears to be 2 blank lines in a row but there are only spaces. Can it verify if there are spaces only and remove the second line?

For example:


Now is the time for all ...