Created
July 23, 2015 18:31
-
-
Save kbandla/7bd1c5ea48746a84eaa0 to your computer and use it in GitHub Desktop.
( 40c5a2fd9644d10f43cc4b59a35f381b )
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
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