I need this to be written in python using regex: 1) identify all valid prices that appear in the file A valid price may be represented in the following forms $x, where x is a string of one or more digits with the restriction that the 1 st digit is NOT zero $x.bc, where x is string of one or more digits, where 1 st digit can be zero ONLY if x is a single character b & c are single digits in either case, if x is longer than 3 digits, commas are used to separate subsequences of 3 digits Invalid formats include $y, where y is a string of one or more digits but the 1 st digit is zero $x.b, where b is a string of 1 or (3 or more) digits $y.b, where y is as described above, and b is a string of 1 or (3 or more) digits Solution import re fileName = raw_input(\"Enter file name\") input = open(fileName, \'rb\') for line in file: matchObj = re.match(r\'^[1-9]\\d*(\\.\\d+)?$\', line) if matchObj: print matchObj .