An official website of the United States Government
Official websites use .gov or .mil
A .gov or .mil website belongs to an official government organization in the United States.
Secure .gov or .mil websites use HTTPS
A lock () or https:// means you’ve safely connected to the .gov or .mil website. Share sensitive information only on official, secure websites.
def parse(name): m = pattern.search(name) if not m: return None d = datetime.strptime(m.group('date')+m.group('time'), '%m%d%Y%H%M%S') return { "prefix": m.group('prefix'), "datetime_iso": d.isoformat(), "unit": m.group('unit'), "label": m.group('label') }
pattern = re.compile(r'(?P<prefix>[a-z0-9]+?)(?P<date>\d{8})(?P<time>\d{6})(?:_(?P<unit>[a-z]+))?(?:_(?P<label>[a-z]+))?', re.I)
Assistant Secretary of War for Energy, Installations, and Environment
Principal Deputy Assistant Secretary of War for Energy, Installations, and Environment nhdtb213javhdtoday04182022023637 min exclusive