Skip to content

Instantly share code, notes, and snippets.

@jumblies
Created March 21, 2018 09:21
Show Gist options
  • Save jumblies/e9f3608141af29b15814d5bbcbaa8f69 to your computer and use it in GitHub Desktop.
Save jumblies/e9f3608141af29b15814d5bbcbaa8f69 to your computer and use it in GitHub Desktop.
SuperRegex for study parsing with USROC
super_regex = '(?:[\r\n]*)([\'A-Z -\.]*)(?:[\r\n]+)(\[.+||\s])\s*(CURRENT STUDY:[A-Z\s/\[\]]+)([\d-]+)\s([\d:]+)\s(\[DOB:[\s0-9/]+])\s+(\[ID:.+])\s*(?:USE . LINK)\s*(Read Date: \d{4}-\d{2}-\d{2})\s*(Read Time: \d{2}:\d{2}:\d{2})'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment