Howdy senator Racko: 

> to go from 
>  ^(ted|admin|bobr|andrew|elan|keith|cheryl|joel|brady)$
> which is what is literally in the input stream/file to 
>   ["ted" "admin" "bobr" "andrew" "elan" "keith" "cheryl" "joel" "brady"]
> needs to be explained. the rest using 'find is trivial.
>  (though you don't cover excluded values or prefixes or suffixes)

   Apologies in advance if I'm missing the mark (haven't been
   able to really read this or any other thread very deeply
   lately, but isn't the situation you are addressing one of sets:

  -------------------------------------------------------

  ;- given data of the form:
  data: {^^(ted|admin|bobr|andrew|elan|keith|cheryl|joel|brady)$}
 
  split-it: func [what][difference parse/all what "^^|$()" [""]]

  split-data: split-it data 
  
  users: ["ted" "admin" "bobr" "andrew" "elan" "keith"
           "cheryl" "joel" "brady"]

  some-other-data: split-it {^^(tom|dick|harry|ted|ivan)}

  whos-in:  intersect some-other-data users    == ["ted"]
  whos-out: differece whos-in some-other-data  == ["tom" "dick" "harry" "ivan"]

  -------------------------------------------------------

  If not, pardon my intrusion in this knowledge base building
  thread. 

  (Wondering to myself: if polymorphic set operations were
  available in languages that rely heavily on regular
  expressions, would those regexps still be used just as much?)

  -jeff

Reply via email to