... what do I call what I am trying to do with 0-9|a-e:0-9|a-e?

Assuming you're actually working with  [0-9]|[a-e]:[0-9]|[a-e] (please use  <code> ... </code> tags in future; please see Writeup Formatting Tips, Markup in the Monastery), it can be explained as:

c:\@Work\Perl\monks>perl -wMstrict -le "use YAPE::Regex::Explain; ;; my $rx = qr{ [0-9] | [a-e]:[0-9] | [a-e] }xms; print YAPE::Regex::Explain->new($rx)->explain; " The regular expression: (?msx-i: [0-9] | [a-e]:[0-9] | [a-e] ) matches as follows: NODE EXPLANATION ---------------------------------------------------------------------- (?msx-i: group, but do not capture (with ^ and $ matching start and end of line) (with . matching \n) (disregarding whitespace and comments) (case-sensitive): ---------------------------------------------------------------------- [0-9] any character of: '0' to '9' ---------------------------------------------------------------------- | OR ---------------------------------------------------------------------- [a-e] any character of: 'a' to 'e' ---------------------------------------------------------------------- : ':' ---------------------------------------------------------------------- [0-9] any character of: '0' to '9' ---------------------------------------------------------------------- | OR ---------------------------------------------------------------------- [a-e] any character of: 'a' to 'e' ---------------------------------------------------------------------- ) end of grouping ----------------------------------------------------------------------
See YAPE::Regex::Explain for regexes of Perl version 5.6 or before.


Give a man a fish:  <%-(-(-(-<


In reply to Re^3: remove lines that do not match search pattern by AnomalousMonk
in thread remove lines that do not match search pattern by jasonwolf

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.