[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20000113: Is it possible to EXCLUDE in regular expressions?



On Thu, 13 Jan 2000, Unidata Support wrote:

> >To: address@hidden
> >From: Ken Waters <address@hidden>
> >Subject: Is it possible to EXCLUDE in regular expressions?
> >Organization: .
> >Keywords: 200001130033.RAA02195
> 
> 
>      I am working on one of our pqact.conf files and have a specific need 
>      to use a "NOT" function in my regular expressions.  In other words, I 
>      want something that is similar to (...) [include everything], EXCEPT 
>      for certain exact occurrences.  Can that be done?  You see, I want to 
>      do something specific just for METARs, TAFs, and a few other data 
>      types, and then let everything else follow a different set of rules.  
>      I know I can write a script and use PIPE, but I think that may be 
>      difficult and unwieldy.
>      
>      I hope I'm making myself clear on this.  I need a "give me everything 
>      EXCEPT for a, b, and c".  Any suggestions?  I looked all through the 
>      LDM Site Managers Guide and didn't see such an option.
>      
Ken,

There is no NOT functionality in the LDM RE, but it's possible to write RE
that only match certain patterns.  If you send me the details of what
patterns to accept and what patterns to reject I can probably write the RE
for the pqact entry.  


Robb....



>      Thanks for the help.
>      
>      Ken Waters
>      NWS, Southern Region
> 

===============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
address@hidden             WWW: http://www.unidata.ucar.edu/
===============================================================================