Results 1 to 8 of 8
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Find and Replace (Word2000/XP)

    How do you search for occurences of one hard return (one paragraph mark) and replace with a space when sometimes there are two returns. I guess I want to say find only one return but it finds every paragraph mark. I am still trying to work on the bibliography. Thought I could replace all paragraph marks and start from scratch with just the entry and the annotation as two separate paragraphs. I have 568 entries. After I do this, I can do the list continue.

  2. #2
    3 Star Lounger
    Join Date
    Jan 2001
    Posts
    313
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Find and Replace (Word2000/XP)

    Thank you - this is what I was trying to do. My mind went blank. Thank you again.

  3. #3
    3 Star Lounger
    Join Date
    Jun 2001
    Location
    Los Angeles, California, USA
    Posts
    289
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Find and Replace (Word2000/XP)

    When I've had to do this, I've done it in two sweeps: Find/Replace two ^p^p with a marker (e.g. @@), then find/replace one ^p with space, then find/replace the marker (e.g. @@) with ^p^p. Try that.

    You shouldn't need two paragraph symbols if you're using Styles, but I don't know what you started with...

  4. #4
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Find and Replace (Word2000/XP)

    Van,

    I used to do it the way you suggested. Something made me think when I saw your response to Melanie. This may give unintended results if paragraphs have different formatting (at least, para formatting).

    Say you have a para formatted with 3 points of spacing after the para (after-spacing) and 2 enters at the end, as Melanie raised. Say the next para after the 2 enters is formatted with 12 points of spacing after the para. Your/my approach would do what you did and join the para with 3 pts after-spacing to the para with 12 pts after-spacing (with @@@ or whatever in between). The joined para now has 12 pts of after-spacing. When you split them apart, they both have 12 pts of after-spacing. A quick experiment confirmed that for Word 2000. Of course, if the 2 paras with text (not the empty one) are formatted in exactly the same way (either same style or same style+same direct formatting), there are no problems.

    Another approach, which I think does what Melanie wanted and is done in one step is:
    - F/R with wildcards
    - Find What =[!^013]^013
    - Replace With={space}

    This is no better than the above approach in terms of changing the para formatting.

    At least in Word 2000 and below, you could not get a para mark directly for the FW when using wildcards. I think I remember some thread that suggested there may be some effects of this also but don't recall what it was. So you need the ^013. What the above does is search for a non para mark (the [!^013]) followed by a para mark and puts in a space.

    Just some idle thoughts.

    Fred

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Find and Replace (Word2000/XP)

    Hi Fred:
    Just an observation. This will work when you have space after each paragraph & removes extra paragraph marks. However, it will not work when you have two paragraph marks in a row & wish to remove paragraph marks at the end of each line, but keep two paragraph marks between paragraphs. I suppose that you could use a style in the replace box that contained a particular space after setting.
    Cheers,

  6. #6
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Find and Replace (Word2000/XP)

    Hi Fred,

    I like your solution a lot.
    Find what: [!^13]^13, Replace with: ^32 ((= space)) may be a bit risky, because [!^13] may match letters/punctuation, which would get deleted.
    If there is no absolute guarantee that there's a space at the end of each text paragraph, it would be safer to use
    Find what: ([!^13])^13, Replace with: 1^32

    This would sometimes leave two spaces in a row, which you would need to clean up later (for example search for whitespace ^w without wildcards, and replace with one space).

    Another approach would be to replace two or more paragraph marks in a row with, say, a red paragraph mark (using wildcards, Find what: ^13{2;}), and then replace the left-over black (color=automatic) paragraph marks with spaces.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

  7. #7
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: Find and Replace (Word2000/XP)

    Hi Klaus,

    You're absolutely right on the 1 so you don't lose the char before the enter. So how about:
    FW=([!^13^32])^13
    RW=1{space}

    ????

    Fred

  8. #8
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Find and Replace (Word2000/XP)

    Great!

    Klaus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •