Regular Expressions

david brochu jr brochu121 at gmail.com
Wed Apr 12 15:05:56 EDT 2006


Hi,

I am trying to grab the following string out of a text file using regular
expression (re module):

"DcaVer"=dword:00000640

What I need to do with that string is trim down " "DcaVer"=dword:" and
convert the remaining number from hex to dec.

I have been trying to figure this out for a while..I am fairly new so please
any help would be greatly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060412/f9e1e261/attachment.html>


More information about the Python-list mailing list