On 8/19/20 4:12 PM, Neil Zampella wrote:
The logic would need to be able to
distinguish between a valid callsign, and something that LOOKS like a
valid callsign but isn't.
As I have mentioned previously, I'm using the following regex test in perl:
if ( $hash{"CALL"} =~
'^((([A-PR-Z][A-Z]*[0-9]*[A-Z]?)|([1-9][A-Z]+[0-9]*))\/)?(([A-PR-Z
][A-Z]*[0-9]+[A-Z]+)|([1-9][A-Z]+[0-9]+[A-Z]+))(\/([PMA0-9]|MM|(([A-Z]+[0-9]*[A-Z]?)|([1-9][A-Z]+[0-9]*))))?
$' ) {
}
else {
say STDERR '=== Probably an erroneous callsign ', $hash{"CALL"} ;
}
This will not work well for ANY callsign, but for most ones.
Best wishes,
Claude (DJ0OT)
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel