Re: [ldm-users] Negative look ahead/behind in pqact.conf?

  • To: Matthew Foster - NOAA Federal <matthew.foster@xxxxxxxx>
  • Subject: Re: [ldm-users] Negative look ahead/behind in pqact.conf?
  • From: Donna Cote <d-cote@xxxxxxxx>
  • Date: Wed, 21 Jun 2017 11:30:34 -0500
Howdy Matthew,

What has worked for me before is using two regex lines. I haven't tested
this out myself.

NNEXRAD   ^(SDUS[234578].) (P|T)(...) (..)(..)(..)
        Exec.....

NNEXRAD   ^(SDUS[234578].) ([K])([^E][^A][^X]) (..)(..)(..)
        Exec..... (be certain this action is exactly the same as for the
other regex)

This should give you
   1) everything that starts with P or T, then
   2) the that start with K except "KEAX".

Good luck, Donna

On Jun 21, 2017 9:14 AM, "Matthew Foster - NOAA Federal" <
matthew.foster@xxxxxxxx> wrote:

Does the regex engine in pqact support negative look ahead/behind?  I have
a pattern that grabs all radars from NOAAPORT like so...

NNEXRAD   ^(SDUS[234578].) (K|P|T)(...) (..)(..)(..)

I want it to match everyone *except* KEAX.

Thanks for any suggestions.

Matt


-- 
Matt Foster, Science & Operations Officer
NWS Operations Proving Ground
7220 NW 101st Terrace
Kansas City, MO 64153
Office: 816-268-3113



_______________________________________________
NOTE: All exchanges posted to Unidata maintained email lists are
recorded in the Unidata inquiry tracking system and made publicly
available through the web.  Users who post to any of the lists we
maintain are reminded to remove any personal information that they
do not want to be made public.


ldm-users mailing list
ldm-users@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: http://www.unidata.ucar.edu/
mailing_lists/
  • 2017 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the ldm-users archives: