Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / November 2003

Tip: Looking for answers? Try searching our database.

edit/replace wildcards

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BruceD - 27 Oct 2003 20:56 GMT
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!
Brian - 28 Oct 2003 19:35 GMT
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
[quoted text clipped - 20 lines]
>Any help greatfully appreciated!
>.
BruceD - 28 Oct 2003 20:02 GMT
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
[quoted text clipped - 32 lines]
>>
>.
Klaus Linke - 30 Oct 2003 03:25 GMT
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

> Thanks, Brian.
>
[quoted text clipped - 48 lines]
> >>
> >.
BruceD - 04 Nov 2003 16:40 GMT
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
[quoted text clipped - 71 lines]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.