Hi Chris,

I tried to validate the following two regular expressions by a program
ExpressionValidator:
1) TES-Aura_L2-CO2-Nadir_r\d{10}\w{2}\d{2}\w\d{2}\.he5
2) TES-Aura\_L2-CO2-Nadir\_r\d{10}\w{2}\d{2}\w\d{2}\.he5

The following input string is inputed :
TES-Aura_L2-CO2-Nadir_r0000002147_F06_09.he5

But the program ExpressionValidator said "true".
So I think that  there is no problem when validating the regular
expressions for given input string.

Thanks,

Yunee


2012/7/22 Mattmann, Chris A (388J) <[email protected]>:
> Hi YunHee,
>
> On Jul 19, 2012, at 6:14 PM, YunHee Kang wrote:
>
>> HI Chris,
>>
>> I made correct  a corresponding ProtocolFactory for ftp Protocol  in
>> the file  policy/ProtocolFactoryInfo for running a script "pushpull".
>> I think  I fixed the problem related with a ftp connection to a remote site.
>>
>> But I got the follow a part of  the error message when I ran the script.
>> SEVERE: Failed to finish downloading per property files
>> /home/yhkang/oodt/cas-pushpull/etc/examples/DirStructXmlParserFiles/TESL2CO2.xml
>> : null
>>
>> Is there any problem in the file "TESL2CO2.xml" ?
>>
>> <root>
>>    <dirstruct starting_path="/TES/TL2CO2N.005">
>>        <nofiles/>
>>        <dir name="\d{4}\.\d{2}\.\d{2}">
>>            <nodirs/>
>>            <file name="TES-Aura_L2-CO2-Nadir_r\d{10}\w{2}\d{2}\w\d{2}\.he5"/>
>>        </dir>
>>    </dirstruct>
>> </root>
>
> I *think* (but could be wrong) that you need to prefix
> the '_' with a '\'.
>
> There is a program called ExpressionValidator that we ship with
> Pushpull:
>
> java -Djava.ext.dirs=../lib 
> org.apache.oodt.cas.pushpull.util.ExpressionValidator
>
> That you can use to validate your regexes.
>
> Give that a shot and let us know!
>
> Cheers,
> Chris
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Senior Computer Scientist
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 171-266B, Mailstop: 171-246
> Email: [email protected]
> WWW:   http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Assistant Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>

Reply via email to