Need help in writting re in python
Posted
by laspal
on Stack Overflow
See other posts from Stack Overflow
or by laspal
Published on 2010-03-27T05:04:45Z
Indexed on
2010/03/27
5:13 UTC
Read the original article
Hit count: 180
python
Hi, My string is
mystring = "<tr><td><span class='para'><b>Total Amount : </b>INR (Indian Rupees)
100.00</span></td></tr>"
My problem here is I have to search and get the total amount
test = re.search("(Indian Rupees)(\d{2})(?:\D|$)", mystring)
but my test give me None. How can I get the values and values can be 10.00, 100.00, 1000.00
Thanks
© Stack Overflow or respective owner