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

20050523: Replacement character list limitation?



Stonie,

>Date: Mon, 23 May 2005 16:07:35 +0000
>From: "Stonie R. Cooper" <address@hidden>
>Organization: Planetary Data, Incorporated
>To: address@hidden
>Subject: Replacement character list limitation?

The above message contained the following:

> WMO   ^(..)(..)(..) (....) (..)(..)(..)/(.) (...) (....) (..)
>       FILE    -close  data/\1\2\3_\4_\6_\6\5\7_\8_\11_\10_\9
> 
> The "\11" and "\10" are recognized as "\1"1 and "\1"0 . . . do you see what I 
> mean?

I've enhanced the syntax of back-references in the replacement string of
pqact(1) configuration-file entries to support what you want.  The new
syntax is "\(nn)", where "nn" is one or two-digits.  So, for example,
the above entry can become

WMO     ^(..)(..)(..) (....) (..)(..)(..)/(.) (...) (....) (..)
        FILE    -close  data/\1\2\3_\4_\6_\6\5\7_\8_\(11)_\(10)_\9

A patch-file for this enhancement is on the LDM GForge site at

    http://gforge.unidata.ucar.edu/projects/ldm/

Select the "Tracker" tab, and then the "Patches" link.

I'm not able to test this patch at this time, so please let me know if
this works for you or if there are any problems.

Regards,
Steve Emmerson
LDM Developer