Search for Multiline patterns – OpenXmlRegex

Home Forums Open-Xml-PowerTools Search for Multiline patterns – OpenXmlRegex

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  meronf 9 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3302

    Eric White
    Keymaster

    Hi,

    This is, unfortunately, not a feature of the OpenXmlRegex class. It is the most requested feature, but I have not had the opportunity to enhance it to enable this feature.

    It is a pretty complicated piece of code to write. Have you watched the screen-casts on OpenXmlRegex? The second screen-cast walks through the algorithm currently implemented for OpenXmlRegex. Unfortunately, that algorithm is not suitable for execution over an entire document – breaking an entire document up into runs of a single character results in too much memory usage. Therefore, OpenXmlRegex does text replacement on a single paragraph at a time.

    I have contemplated another approach that would use far less memory, but have yet to prove out this approach.

    Cheers, Eric

    #3304

    meronf
    Participant

    Thanks Eric.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.