Skip to content

Instantly share code, notes, and snippets.

@kissmygritts
Created March 29, 2019 16:13
Show Gist options
  • Save kissmygritts/bead13dbac713a7e56bf5c7b0598634e to your computer and use it in GitHub Desktop.
Save kissmygritts/bead13dbac713a7e56bf5c7b0598634e to your computer and use it in GitHub Desktop.
regex to select formatted lab ids
select distinct
specimenid
from health.labs
where specimenid !~ '([[:alnum:]]+)(_|-)(\d+)(_|-)(\d+)';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment