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

Yes! It works!

It's not entirely clear to me why I need the surrounding parenthesis, but it works none-the-less.

Your answer is another reason why I love Perl. There are so many people that are willing to help when there is an issue. Sometimes the solution comes from the developer of the package, while other times it comes from someone like yourself. In any event, Perl is a wonderful language, repository and community.

Thanks so much for the support, it is genuinely appreciated.

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

  • Comment on Re^6: RegEx for OpenOffice::OODoc as in $doc->selectElementsByContent()

Replies are listed 'Best First'.
Re^7: RegEx for OpenOffice::OODoc as in $doc->selectElementsByContent()
by RonW (Parson) on Jun 03, 2016 at 22:16 UTC
    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.

      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

Re^7: RegEx for OpenOffice::OODoc as in $doc->selectElementsByContent()
by stevieb (Canon) on Jun 04, 2016 at 00:10 UTC

    The reason I decided on Perl many moons ago, is because I 'listened' on numerous newsgroups, email lists and forums, and Perl had the most friendly (yet straight to your face) attitude, and that continues to this day.

    I'm the type who is never afraid to admit when I'm wrong or when I've made a mistake. If someone has a better method for something, I'll change my whole thought process based on that if it makes logical sense.

    PerlMonks (and the email lists, IRC etc for Perl) are always straight up and helpful. I love to help, but I also know that there is an infinite amount of knowledge I can still learn. This is evident in this thread alone.

    I like friendly places, at the same time, I like getting (even harsh) feedback/criticism. If you want to learn, this is a great place, and you'll be in good company.

      I'm with you in all of what you wrote.

      Most aspects of Perl are great and it has and continues to help me in ALL aspects of my life - both work and personal.

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