Both my misunderstandings are entirely mine.

It is an interesting problem and one that is hard to specify in words. I just got caught up with trying to solve it using a generated regex and wasn't particularly concerned with keeping an eye on the rules, or even meeting their absolute requirements.

That's pretty much why I didn't publish my code initially. It is also quite a difficult problem to verify your solutions, given the variations in dictionaries etc. The only way I can see of validating is to cross reference with the original (deleted) problem and other peoples generated problems and solutions. I always left the possibility that my code was in error open when I posted questions/solutions.

Adding code to deal with this particular rule isn't a problem, but I have still to yet prevent my code from rejecting possible matches that contain duplicate, required letters. It may be that I won't find a (pure regex) solution to that task, but I am thoroughly enjoying the attempt. I learned a couple of new (to me) regex tricks already.

If my earlier suggestion that you re-write the rules to incorporate some of the separate assumptions into the base description, in an attempt to make the description clearer, came across as 'scolding', it wasn't indended to.

Thankyou for posting the challenge. I am (still) enjoying it. I wish we had more like this on a regular basis--preferably at weekends.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

In reply to Re^7: Challenge: Mystery Word Puzzle by BrowserUk
in thread Challenge: Mystery Word Puzzle by Limbic~Region

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.