Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(A[KLRZ]|C[OT]|D[CE]|GA|HI|I[ADLN]|K[SY]|LA|M[EINOST]|MDC|[NS]NJ|[NEW]NY|NLI|N[CDEHMV]|O[HKR]|PAC|P[R]|RI|S[BCDFV]|TN|[SN]FL|WCF|EB|LAX|ORG|SCV|SDG|SJV|UT|V[AIT]|W[IVY]|[EW]MA|[WNS]TX|[WE]PA|[WE]WA||GH|ON[ENS]|AB|SK|BC|QC|NB|NL|NS|MB|PE|TER)$
/
gm

Description

Finds valid ARRL sections

Submitted by NY4I - a day ago