import re ptrn_buy_in = re.compile("(?<=[$€£])[0-9]+\.[0-9]+")print(re.findall(ptrn_buy_in, r"$14.69+$0.31"))
Standard input is empty
['14.69', '0.31']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!