# Expected formats # >>>A 430-08870 BKR PRINTING $ 1,090.00 $ 155.00 M 5 20 $ 1,035.50 Mark Bengtzen 01/22/2020 (801) 532-5363<<< # >>>420-31784 GRAFIKSHOP CORP. DBA FALCON $ 945.00 $ 110.00 M 1 20 $ 935.55 Mei-Ing Hoffman 01/22/2020 (713) 977-2555<<< if ( $line =~ m/^ (? \w \s+)? (? \d{3}-\d{5}) \s+ (? \S [^\$]+) \s+ \$ \s* (? \S+) \s+ \$ \s* (? \S+ \s+ \w) \s+ (? \S+) \s+ (? \S+) \s+ \$ \s* (? \S+ ) \s+ (? \w \D+ \S ) \s+ (? \d\d\/\d\d\/\d{4} ) \s+ (? [(]\d{3}[)] \s \d{3}-\d{4} ) /x ) { say "Found Contractor '", $+{Name}, "' (", $+{ContractorCode}, ") and bidder '", $+{Bidder} , "' (", $+{DateReceived},")"; } else { say "Failed to parse line: >>>", $line, "<<<"; }