wordpress hit counter
Home - OpenXML Developer
Search and Replace using Regular Expressions

PowerTools for Open XML now contains a new class, OpenXmlRegex, which enables you to search and replace in DOCX and PPTX using regular expressions. Further, this class supports revision tracking - it works properly if you are searching in a document that contains existing revision tracking, and it optionally enables you to introduce new revision tracking markup when replacing text. This task is a little more complicated than it might seem because text can be split into multiple runs, and as appropriate we want the code to match text that spans runs.

In the screen-cast Search and Replace Content in DOCX, PPTX using Regular Expressions, I demonstrate the class, explain the API of the class, and discuss some of the more interesting aspects of introduction of revision tracking markup.

In the screen-cast How the OpenXmlRegex Class Works, I discuss the algorithm that the class uses. This will be interesting to students of Open XML and document formats.

Cheers,
Eric White

P.S. I am going to be on vacation from August 15 through September 1. I won't be attending the forums (or even be online) during that period!

Home

Activities & Forums
Blog Posts
  • OpenXML Developer

    Custom UI Editor Tool

    • 31 Comments
    LASTEST VERSION OF THE CUSTOM UI EDITOR - updated to work with the RTM build of Office 2007 and Beta build of Office 2010 - ATTACHED TO THIS POST The 2007 Microsoft Office System has an all-new "ribbon...
  • OpenXML Developer

    Office Custom UI Editor available

    • 21 Comments
    Office Custom UI Editor for Microsoft Office tool has been made available and is attached to this article. The highlights are: 1. Office custom UI editor is a tool to edit the Office custom UI XML part...
  • OpenXML Developer

    Open XML Explained e-book

    • 11 Comments
    Attached is a downloadable copy of "Open XML Explained" by Wouter Van Vugt, the first book on Open XML development. The sample documents for the book are also available for download here . This 128-page...
  • OpenXML Developer

    Sample Open XML Documents

    • 9 Comments
    Want to try opening and reading Open XML programmatically, but don't have software that can easily create them? These sample documents are what you need: samples of simple Open XML word processing, spreadsheet and presentation files....
Page 1 of 100 (397 items) 12345»
Wikis - Table of Contents