Skip to content

Instantly share code, notes, and snippets.

@kbandla
Created July 23, 2015 18:31
Show Gist options
  • Save kbandla/7bd1c5ea48746a84eaa0 to your computer and use it in GitHub Desktop.
Save kbandla/7bd1c5ea48746a84eaa0 to your computer and use it in GitHub Desktop.
( 40c5a2fd9644d10f43cc4b59a35f381b )
import re
from pdb import set_trace
data = open('data.text').read()
"""
Software version:
5.2.0, 5.3
Operating system(s):
Firmware
Reference #:
1958086
Modified date:
2015-06-04
"""
REGEX = "Software version:"
# 5.2.0, 5.3
# Operating system(s):
print data
resultObject = re.search(REGEX, data)
if resultObject:
print resultObject
set_trace()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment