Skip to content

Instantly share code, notes, and snippets.

View p34eu's full-sized avatar
💭
I may be slow to respond.

jq p34eu

💭
I may be slow to respond.
View GitHub Profile
@p34eu
p34eu / gist:548444878d6985fb9ebfb052703d3de8
Created June 4, 2021 18:14 — forked from JoshuaCarroll/gist:f6b2c64992dfe23feed49a117f5d1a43
Regular expression (regex) for non-US amateur radio call signs
All amateur radio call signs:
[a-zA-Z0-9]{1,3}[0123456789][a-zA-Z0-9]{0,3}[a-zA-Z]
Non-US call signs:
\b(?!K)(?!k)(?!N)(?!n)(?!W)(?!w)(?!A[A-L])(?!a[a-l])[a-zA-Z0-9][a-zA-Z0-9]?[a-zA-Z0-9]?[0123456789][a-zA-Z0-9][a-zA-Z0-9]?[a-zA-Z0-9]?[a-zA-Z0-9]?\b
US call signs:
[AKNWaknw][a-zA-Z]{0,2}[0123456789][a-zA-Z]{1,3}