Search found 103 matches

by Ed
Wed Jul 16, 2003 9:23 pm
Forum: General
Topic: find one of [tdpb] but keep original of [tdpb] while replaci
Replies: 1
Views: 79

Find
\([tdpb]\)
replace with
\t\1\t
by Ed
Tue Jul 15, 2003 7:01 pm
Forum: General
Topic: keep/extract strings found by find/replace
Replies: 2
Views: 145

1. Check under Configure->Preferences->keyboard->Edit->EditCopyAppend that this is assigned to Ctrl+Shift+C if not assign it. 2. Search for /[^-]*- (Regular expression) 3. Close (Find dialogue) 4. Copy (to clipboard) 5. Macro->Record 6. Ctrl-F (Find next) 7. Ctrl+Shift+C (copy append) 8. Macro->stop...
by Ed
Fri Jul 04, 2003 6:01 am
Forum: General
Topic: split view control?
Replies: 4
Views: 375

What you need is ExamDiff Pro. It's an excellent program that does exactly what you want. It is modestly-priced shareware with (I think) a 30-day free trial. It is extremely stable (bug-free) and can be obtained from http://www.prestosoft.com/ps.asp?page=edp_examdiffpro I use it all the time in conj...
by Ed
Thu Jul 03, 2003 1:20 pm
Forum: General
Topic: Carriage Returns
Replies: 6
Views: 597

I guess it just means that there are no lines with no |s in them
by Ed
Wed Jul 02, 2003 10:29 pm
Forum: General
Topic: Carriage Returns
Replies: 6
Views: 597

In this particular case search for \n\([^|]+\)$ and replace all with \1 (reg exp of course) would be a start. (this will append all lines with no "|" to the previous line) then search for \n\([^|]*|[^|]*\)$ replace with \1 (this will append all lines with one "|" to the previous ...
by Ed
Wed Jul 02, 2003 10:14 am
Forum: General
Topic: Carriage Returns
Replies: 6
Views: 597

1. Can you post a sample of the text before and after it has been fixed? 2. Is the order of the records important? 3. On a "good" record, are there exactly 2 | dividers? 4. On a "good"record, does the line end with a |? A possible solution (depending on the above replies) is to i...
by Ed
Sat Jun 21, 2003 9:48 am
Forum: General
Topic: Find the 1ST OCCURRENCE of a word in parentheses, ignore oth
Replies: 6
Views: 439

Has that answered you?
What do the dots following the TABs mean?
Try:
Find:
^\([^\t]+\t[^\t]+\t[^(]*\)(123)
Rep
\1QL\t(123)
by Ed
Thu Jun 19, 2003 1:24 pm
Forum: General
Topic: Find [.,]\n ...but not if what follows \n is the word This
Replies: 14
Views: 1056

The stuff I posted was for use AFTER capitalization.

Try find
\<m\(a\{0,1\}\)c *\([a-z]\)
Replace with
M\l\1c \u\2

That'll put a space after Mc or Mac or Mc<space> of Mac<space>
by Ed
Thu Jun 19, 2003 6:12 am
Forum: General
Topic: Find [.,]\n ...but not if what follows \n is the word This
Replies: 14
Views: 1056

Well, why didn't you say earlier...
After your capitalizing trick, find:
\<m\(a\{0,1\}\)c\([a-z]\)
and replace with
M\l\1c\u\2
(Regexp, no Match Case)

Is there really anyone with a first name of Mac? or - Do you really want to change MacArthur to Mac Arthur? We can arrange that if you wamt. :D
by Ed
Wed Jun 18, 2003 7:20 pm
Forum: General
Topic: Find [.,]\n ...but not if what follows \n is the word This
Replies: 14
Views: 1056

You're not telling us the whole story here are you? Your 2 examples seem to be doing different things. Now, if all you want to do is replace MCPETERSON MCCARTHY MAC PHERSON MAC ARTHUR with MC PETERSON MC CARTHY MACPHERSON MACARTHUR then find all: ^MC\([^ ]\) replace with MC \1 then find all: ^MAC re...
by Ed
Mon Jun 16, 2003 7:27 am
Forum: General
Topic: Find [.,]\n ...but not if what follows \n is the word This
Replies: 14
Views: 1056

Hi Skye
What you need is
\([.]\|,\)\n\([^T][^h][^i][^s]\)
and when you replace use \2 to replace the text that is not "This" - an example of "before and after" from you would be helpful in giving a solution
Ed
by Ed
Fri Jun 06, 2003 8:52 pm
Forum: General
Topic: Several beginner problems with C++
Replies: 6
Views: 599

Well, that's a different eror string from before, so try
^\(..[^:]+\):\([0-9]+\):.*$

File 1
Line 2
by Ed
Thu Jun 05, 2003 9:24 pm
Forum: General
Topic: Several beginner problems with C++
Replies: 6
Views: 599

C:/My Documents/Edu/test.c:2:2: warning: no newline at end of file (i guess that should be \ not / - but it makes no difference) If this is your error message, then your regular expression needs to change to ^\(..[^:]+\):\([0-9]+\):\([0-9]+\).*$ with file 1 line 2 and column 3 then double click on ...
by Ed
Fri May 30, 2003 12:09 pm
Forum: General
Topic: Indenting only one line
Replies: 4
Views: 231

:oops: oops! You're right Andreas
by Ed
Fri May 30, 2003 8:46 am
Forum: General
Topic: Indenting only one line
Replies: 4
Views: 231

It sounds like you need a word-processor not a text editor but, seeing as you ask, do a find and "replace all"
Search for
\n[^\t]
Replace with
\n\t
with "Regular Expression" box ticked
Go to the start of the file (Ctrl-Home) and put a tab there if there is not one.