ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Hacking Word
Subject:   Replace feature in word
Date:   2008-05-18 18:50:55
From:   andrewsavikas
Response to: Replace feature in word

Word doesn't really "think" in terms of page numbers or line numbers. The pagination (including how the lines wrap on the page) is determined dynamically, and constantly, as the content is updated. If by "line" you mean "paragraph" (meaning that each new entry is in its own paragraph) then you have some more options. And yes, a pattern most certainly can be supplied. My book contains detailed instructions for using both built-in "wildcard" patterns, and more powerful "regular expressions". For basic wildcard info, check out http://word.mvps.org/faqs/General/UsingWildcards.htm.