reading $, . and number in python regex
I want to be able to read the price in a given line, for example:
$.0001 ...
I'm trying to read the just the $.0001 part with the following regex:
new_string = re.search(r'\$([.]\d+)', description)
Is there a better way to do so?
No comments:
Post a Comment