OK, here is what I try to accomplish. I want to create a package system (like rpm for example) which could be used for very minimal installations. That system should work down to "uninstall rm". So this system can't be dependent on large packages like perl. Of course one could use perl to create the packages. The database must store the version numbers. That means "1:1...". But I don't need to store them in a form unsuitable to matches. I want to use sed to extract information from this packageDB. sed because no other program is likely to be installed then. So I want the version numbers in a form that sed can use for comparision. That is a regex. Regexes match strings. Regexes are represented (in packageDB at least) as strings. Regexes could match a string that represents another (or the same) regex. If that match works is in version regexes a sign of order. That means "A regex matches a regex". Something I had left out: There could be a regex that matches all version regexes and is matched by them in turn so is equal to all -> a wildcard. That is another bonus for regexes, or have you ever heard of a wildcard number?

Slow enough?


In reply to Re^2: Need version regex by Anonymous Monk
in thread Need version regex by Anonymous Monk

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.