Thanks everyone.

Those approaches will be very useful. I could have made it clearer I guess, that I can program my way to a solution, but was wondering if regex would have it built-in, so I could just use  "cat dictionary-file | grep /Z1[AABCDEF]/Z2where Z1 or Z2 is a magic modifer that forces each letter in the  [ ]set to be used only once. It looks like not. But you never know, there's a world of functionality in regexp and anything that feels like it could be in there, or would have been asked before, usually is in there.

Well back to WordsWithFriends on iPhone ! The dictionary for that game has 173000 words and a vast number I have never heard of, not to mention English/US/other spellings etc. My friends just experiment with words until they find something it accepts and I need to fight back ! Not really fair but I need a few wins.


In reply to Re: Regex question once-only use of chars in a charset by gje21c
in thread Regex question once-only use of chars in a charset by gje21c

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.