mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
6 lines
152 B
Python
6 lines
152 B
Python
|
import re
|
||
|
|
||
|
def validate_freedata_callsign(callsign):
|
||
|
regexp = "^[a-zA-Z]+\d+\w+-\d{1,2}$"
|
||
|
return re.compile(regexp).match(callsign) is not None
|