edit/replace wildcards

B

BruceD

Is there a way to use edit/replace with wild cards to do
the following?

I'd like to start a new paragraph after the SECOND colon
:)) in this list

2000: Introducing Topic A: This A topic is about . . .
2001: A few thoughts on Topic B: This B topic is
about . . .

So that it looks like this:

2000: Introducing Topic A:
This A topic is about . . .

2001: A few thoughts on Topic B:
This B topic is about . . .

I tried FIND [a-z]: and then REPLACE [a-z]:^p but this
actually replaced A B and Y with "[a-z]"!

Any help greatfully appreciated!
 
B

Brian

You might want to try recording a macro instead. I'm
assuming that your document is styled the same
throughout. If this is the case that you can set the
macro to find, twice, a ':', and then hit the enter key to
start your new paragraph. Once you've recorded the
strokes, simply run it for the entire document.

Hope this helps.
 
B

BruceD

Thanks, Brian.

I'm sure that would work, but I finally figured it out
with wildcards:

In the find box [a-z]:
In the replace box ^&^p

(^& apparently means "whatever was just found")

Thanks again - given my skill level, it sure beats
writing macros!

-----Original Message-----
You might want to try recording a macro instead. I'm
assuming that your document is styled the same
throughout. If this is the case that you can set the
macro to find, twice, a ':', and then hit the enter key to
start your new paragraph. Once you've recorded the
strokes, simply run it for the entire document.

Hope this helps.
-----Original Message-----
Is there a way to use edit/replace with wild cards to do
the following?

I'd like to start a new paragraph after the SECOND colon
:)) in this list

2000: Introducing Topic A: This A topic is about . . .
2001: A few thoughts on Topic B: This B topic is
about . . .

So that it looks like this:

2000: Introducing Topic A:
This A topic is about . . .

2001: A few thoughts on Topic B:
This B topic is about . . .

I tried FIND [a-z]: and then REPLACE [a-z]:^p but this
actually replaced A B and Y with "[a-z]"!

Any help greatfully appreciated!
.
.
 
K

Klaus Linke

Hi Bruce,

Good idea to replace the original goal (¶ after the second ":") with an
easier one (¶ after a letter+colon, and not after a number+colon).

For the original goal, you'd have needed to include the preceeding paragraph
mark in the "Find what:" expression, to you have an "anchor" from which
onwards you can count the colons.

A first try might then be
Find what: ^13*:*:
Replace with: ^&^p

But the "*" joker is a dangerous thing, which might match a whole lot of
text.
In most cases, matches should be restricted to a single paragraph. So most
times, you should simply replace all "*" with "[!^13]@" (= any lenght of
arbitrary text, but *no* paragraph marks).

So you'd get
Find what: ^13[!^13]@:[!^13]@:
Replace with: ^&^p

Greetings,
Klaus



BruceD said:
Thanks, Brian.

I'm sure that would work, but I finally figured it out
with wildcards:

In the find box [a-z]:
In the replace box ^&^p

(^& apparently means "whatever was just found")

Thanks again - given my skill level, it sure beats
writing macros!

-----Original Message-----
You might want to try recording a macro instead. I'm
assuming that your document is styled the same
throughout. If this is the case that you can set the
macro to find, twice, a ':', and then hit the enter key to
start your new paragraph. Once you've recorded the
strokes, simply run it for the entire document.

Hope this helps.
-----Original Message-----
Is there a way to use edit/replace with wild cards to do
the following?

I'd like to start a new paragraph after the SECOND colon
:)) in this list

2000: Introducing Topic A: This A topic is about . . .
2001: A few thoughts on Topic B: This B topic is
about . . .

So that it looks like this:

2000: Introducing Topic A:
This A topic is about . . .

2001: A few thoughts on Topic B:
This B topic is about . . .

I tried FIND [a-z]: and then REPLACE [a-z]:^p but this
actually replaced A B and Y with "[a-z]"!

Any help greatfully appreciated!
.
.
 
B

BruceD

Thanks,Klaus! It was the article you wrote with Graham
Mayor that got me started on this whole thing.

-----Original Message-----
Hi Bruce,

Good idea to replace the original goal (¶ after the second ":") with an
easier one (¶ after a letter+colon, and not after a number+colon).

For the original goal, you'd have needed to include the preceeding paragraph
mark in the "Find what:" expression, to you have an "anchor" from which
onwards you can count the colons.

A first try might then be
Find what: ^13*:*:
Replace with: ^&^p

But the "*" joker is a dangerous thing, which might match a whole lot of
text.
In most cases, matches should be restricted to a single paragraph. So most
times, you should simply replace all "*" with "[!^13]@" (= any lenght of
arbitrary text, but *no* paragraph marks).

So you'd get
Find what: ^13[!^13]@:[!^13]@:
Replace with: ^&^p

Greetings,
Klaus



BruceD said:
Thanks, Brian.

I'm sure that would work, but I finally figured it out
with wildcards:

In the find box [a-z]:
In the replace box ^&^p

(^& apparently means "whatever was just found")

Thanks again - given my skill level, it sure beats
writing macros!

-----Original Message-----
You might want to try recording a macro instead. I'm
assuming that your document is styled the same
throughout. If this is the case that you can set the
macro to find, twice, a ':', and then hit the enter
key
to
start your new paragraph. Once you've recorded the
strokes, simply run it for the entire document.

Hope this helps.

-----Original Message-----
Is there a way to use edit/replace with wild cards to do
the following?

I'd like to start a new paragraph after the SECOND colon
:)) in this list

2000: Introducing Topic A: This A topic is about . . .
2001: A few thoughts on Topic B: This B topic is
about . . .

So that it looks like this:

2000: Introducing Topic A:
This A topic is about . . .

2001: A few thoughts on Topic B:
This B topic is about . . .

I tried FIND [a-z]: and then REPLACE [a-z]:^p but this
actually replaced A B and Y with "[a-z]"!

Any help greatfully appreciated!
.

.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top