Closed classabbyamp closed 3 years ago
But callsign.me does not do simple validation, unless I misunderstood And a request to an api for that seems a bit futile to me
the intent of the project is to do validation, so that code could be re-used for the bot. no api request.
ah ok, that makes sense
ITU callsign rules: https://www.itu.int/en/ITU-R/terrestrial/fmd/Documents/fxm-art19-sec3.pdf
I have a callsign regex here: ([0-9A-Z]+/)?([BFGIKMNRW]|[0-9A-Z]{2,3})[0-9][0-9A-Z]*[A-Z](/[0-9A-Z]+)?
that should work for matching callsigns, including PFX/CALL/SFX
That regex could also capture the groups and allow for the result to have info about the parts, ie country prefix, area number, suffix, if the call is special long format, etc
Could use my callsign.me project as a jumping off point (requires finishing callsign.me)