That’s correct Claude.  

But my PHP program has to deal with both formats in 2019.  Given that one of 
the formats will  be found, all I have to detect is a change in month, which 
comes after the date is harvested from the line (string).

__________
Dan – K4SHQ

-----Original Message-----
From: Claude Frantz [mailto:claude.fra...@bayern-mail.de] 
Sent: Sunday, June 30, 2019 12:50 PM
To: wsjt-devel@lists.sourceforge.net
Subject: Re: [wsjt-devel] ALL.TXT (again)

On 6/30/19 5:41 PM, Dan Malcolm wrote:

Hi Dan,

> Good point Mike.  Right now I’m using the PHP regex function and 
> “(\d{4})-(\d{2})-(\d{2})”.  That worked until the format change.  The 
> function returns a T/F status and sticks the result into an array.

This doesn't match with the current format.

> Claude recommended a regex '^\d{6}_\d{6}\b' to detect the new format.  
> I think both will work.

The regex, which I have mentioned, works fine with the current format, but not 
with previous ones.

Best wishes,
Claude (DJ0OT)


_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel


_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to