in reply to Re^6: RegEx for OpenOffice::OODoc as in $doc->selectElementsByContent()
in thread RegEx for OpenOffice::OODoc as in $doc->selectElementsByContent()

It's not entirely clear to me why I need the surrounding parenthesis

The (?options:pattern) syntax is normally used in a larger regex to apply options to just a part of the whole expression:

/The (?i:internet)/

applies case-insensitivity to just "internet", but not "The"

Most Perl regex options can be used this way.

Replies are listed 'Best First'.
Re^8: RegEx for OpenOffice::OODoc as in $doc->selectElementsByContent()
by AnomalousMonk (Archbishop) on Jun 04, 2016 at 02:36 UTC
Re^8: RegEx for OpenOffice::OODoc as in $doc->selectElementsByContent()
by EigenFunctions (Beadle) on Jun 04, 2016 at 20:31 UTC
    Thanks for the tip. I think I've run into that issue before and your observation would have come in handy. I'm sure I'll see the need again.

    Thanks again...

    Thanks,
      EigenFunctions
      OpSys: Win7 Professional/Home Premium x64 Service Pack 1