Skip to content

Instantly share code, notes, and snippets.

@johnlettman-old
Last active August 29, 2015 14:17
Show Gist options
  • Save johnlettman-old/c06a0b2ff714a76d5694 to your computer and use it in GitHub Desktop.
Save johnlettman-old/c06a0b2ff714a76d5694 to your computer and use it in GitHub Desktop.
DDG::Spice::FCCLicenseLookup Trigger Regular Expression
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*$/
@johnlettman-old
Copy link
Author

Updated to simplify. "amateur radio" and "ham radio" are processed by stripping "amateur" and "ham" from the matches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment