Last active
August 29, 2015 14:17
-
-
Save johnlettman-old/c06a0b2ff714a76d5694 to your computer and use it in GitHub Desktop.
DDG::Spice::FCCLicenseLookup Trigger Regular Expression
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
triggers query_lc => qr/^\s*(?:([knaw](?:[a-z][0-9][a-z]{1,3}|[0-9][a-z]{2,3}))|uls\s+(.+)|(.+)\s+(?:radio|fcc|ham)\s+licenses?)\s*$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to simplify. "amateur radio" and "ham radio" are processed by stripping "amateur" and "ham" from the matches.