Hi Experts,<div><br></div><div><br></div><div><div>I'm a new bie to python and need some assistance in the usage of regular expression.</div><div><br></div><div>I have a string something like this:</div><div><br></div>
<div>New builds available Version: 20120418-abcdef-1 (based on SDK 0.0.0.1)</div><div><br></div><div>from the above string I want to extract the following text using regular expression</div><div><br></div><div>20120418-abcdef-1 </div>
<div>0.0.0.1</div><div><br></div><div>I can do this by split but I feel it is an ineffective way of doing this. I tried using regular expression but could not narrow down.</div><div><br></div><div>for example, I used </div>
<div><br></div><div>    sdk_version = re.search(r"SDK(.*)", lines,)</div><div>                        print sdk_version.group(1)</div><div><br></div><div>but this gave the version 0.0.0.1) along with the paranthesis I did not know how to elimate ')' .. Need some help here..</div>
<div><br></div><div>Thanks</div><div>-Vijay</div><div><br></div><br>
</div>