On 6/30/19 10:18 PM, Dan Malcolm wrote:

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).

I suggest to try to match both formats, in sequence. When the one matches, you decode the date. When not, you try to match to the second format. When it matches, you extract the date. When there is no match, then the line contains another data and you should ignore it. Be sure to match at the beginning of the line. Note the "^" as the first character of the regex.

Best wishes,
Claude (DJ0OT)


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

Reply via email to