Good points from davido
 
and,
<demi-hemi-semi-joke> does "-10" or "1.2" also qualify? After all, neither the minus nor the decimal point is a "number." </demi-hemi...>

and <serious point>: the OP's exact language definitely countenances any 2-digit number (where "number"'s meaning is roughly eq "value") equal to or less than 10. But it does NOT rule out the possibility that the data may contain three digit numbers, such as "007" nor single-digit numbers, like "4;" negative values such as "-10" (<BTW>Does the sign in a signed decimal count as a "digit' for OP's intended purpose?) or -- for that matter -- (hex) 0x0a (which, last time I checked) is less than 0x10. Indeed the discussion would have quite different parameters had OP used "2 digit numeral" ( ?? which would mean unicode ?!) or "two numeral value" instead of "number."</point>

So, <peroation>1. gentle readers, perhaps the imprecision in OP's post and the wisdom in some of the replies (notably, that of reasonablekeith, who says he is neither and that cited above) will remind all who visit here, that snippet samples of data and desired outcomes can help those who would help you.

1. Devil's Dictionary


In reply to Re^2: vallidating a regular expression by ww
in thread vallidating a regular expression by s_gaurav1091

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.