This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
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/ ===============================================================================