Created
March 21, 2018 09:21
-
-
Save jumblies/e9f3608141af29b15814d5bbcbaa8f69 to your computer and use it in GitHub Desktop.
SuperRegex for study parsing with USROC
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
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