Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Uriel
 
Posts: n/a
Default Amazing Bug in Search/Replace -- still!

In an exploring mood, I dug up the following old post I sent in 2003. The
same buggy behavior, exactly as described, persists in MS Word 2003:

----- Original Message -----
From: "Uriel Wittenberg"
Newsgroups:
microsoft.public.word.application.errors,microsoft .public.word.formatting.longdocs
Sent: Sunday, June 01, 2003 7:49 PM
Subject: Amazing Bug in Search/Replace


Create a 16,500-line .TXT file as follows:

--------------------------------
0 test test test test test test test test test test test test $q
1 test test test test test test test test test test test test $q
2 test test test test test test test test test test test test $q
....
16499 test test test test test test test test test test test test $q
--------------------------------

Open it in Word 2000 (9.0.6926 SR-3).

Replace all

"$q^p" (no formatting)

with

"^p" (with formatting: choose some paragraph style)

The quotation marks (") above are not included in the search & replace
strings.

Here are the amazing results I get: all but 36 of the 16,500 lines are
changed as expected. 36 are left unchanged.

The ones that don't get changed are not contiguous:

1002 test test test test test test test test test test test test $q
1258 test test test test test test test test test test test test $q
1514 test test test test test test test test test test test test $q
1770 test test test test test test test test test test test test $q
....
9962 test test test test test test test test test test test test $q

In fact, they appear to be 256 lines apart, don't they? But 1002 is the
first, and 9962 the last.

Is there some way to get reliable, comprehensive search & replace in
Word?

--
http://urielw.com



 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic search/replace Finnegan's Mom Mailmerge 1 November 23rd 05 04:49 AM
Search/replace entire document, excluding one style BerkeleyBecca Microsoft Word Help 0 June 1st 05 12:20 AM
Search/replace entire document, excluding one style Martin P Microsoft Word Help 1 June 1st 05 12:16 AM
Global Search/Replace Janet New Users 1 January 11th 05 11:30 PM
Change of E-mail address change - Global Search/Replace Janet New Users 1 January 11th 05 08:28 PM


All times are GMT +1. The time now is 07:15 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"