Dear JohnGG, tybalt89, Anonymous Monk, AnomalousMonk, and hv,

Thanks so much for your replies. I had never considered in-lining the string and then processing it as a file, but it's clearly a very elegant solution, not only by virtue of solving the problem but also making the code a lot clearer and easier to read and maintain. And to Anonymous, I was not aware of the technique that your code shows whereby capture buffer numbers are reused so that regardless of which alternative matched, the capture buffer numbers are still the same. Very cool. And thanks for the referral to Regex::Common, a good resource.

And to Anomalous, wow, thanks for the reference to the special backtracking control verbs, that's another new area for me to explore.

My understanding of how the voting works when there are multiple responders is that I click on the O++, O--, or O+=0 buttons to allocate points across the responders, and these are limited to awarding a single upvote, a single downvote, or a single nothing vote respectively, there's no mechanism for the OP to award 50% to one, 25% to another, and so forth. But other readers can come along, read through all of the responses, and add their single upvotes or downvotes, and eventually with enough additional readers chiming in, the distributions of 50%, 25%, etc. will emerge from the population of voters rather than from a single voter. And I guess that the box at the bottom of all of the posts labeled vote! is for awarding a point to the discussion as a whole if it seems meritorious. I'm still learning about how the voting system works.

Thanks again to all!

In reply to Re: Unable to constrain the effect of a negative lookahead by fireblood
in thread Unable to constrain the effect of a negative lookahead by fireblood

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.