Loading ...
Sorry, an error occurred while loading the content.

20083Re: [PBML] Compact digital range RexEx - And complement?

Expand Messages
  • Allan Dystrup
    Dec 1, 2004
    • 0 Attachment
      Hi JE,

      No, unfortunately not.

      I have to pass the "negated" RE as a new RE to the parsing program,
      so i'll have to come up with a "complement RE" for :

      (CX36(5|6))|(JA30[0-2])|(JA3(([2-8]\d)|(9[0-4])))|(JA5.*)|
      (JA6((0\d)|(1[0-3])))|(JA64[7-9])|(JA687.*)|(JA74[0-3])|(JB5.*)|(JY
      (((1|2)\d\d)|(3[0-3]\d))))|(JY[3-9][5-9]\d)|(JZ51(3|4)00.*)

      If that proves too hard, i'll have to hack the parser,
      -- but i'd rather not...

      Allan


      --- In perl-beginner@yahoogroups.com, "J.E. Cripps" <cycmn@n...>
      wrote:
      >
      > > --------------------------------
      > > And then i face another problem:
      > > --------------------------------
      >
      > > Given the combined regex (infra) how do i express
      the "complement" (ie
      > > all strings NOT MATCHING this regex) as a new regex ?
      >
      > as a new regex? the !~ op. won't do what you want?
      >
      > > COMBINED REGEX:
    • Show all 20 messages in this topic