I need to find all instances of some numbers in a bunch of text files, here's an example pulled from one of the text files:
00 CX76959 01 3/03 Del Rio TX Nogales AZ 768 1.065 185 .810 967.77 03
00 CX76959 01 3/09 FSC Ml: 768 Rate: .2570 197.38 197.38 N 197.38 03
00 CX86185 01 3/08 IndianaplsIN Manteno IL 160 1.065 1 .810 171.21 03
00 CX86185 01 3/10 FSC Ml: 160 Rate: .2570 41.12 41.12 N 41.12 03
I need to pull the price from any line that has FSC. Specifically I need the dollar amount after Rate: .xxxx
From the example, I need to pull out 197.38 and 41.12
I need to pull all the FSC numbers from a text file and total them. What pattern would work?
Thanks
00 CX76959 01 3/03 Del Rio TX Nogales AZ 768 1.065 185 .810 967.77 03
00 CX76959 01 3/09 FSC Ml: 768 Rate: .2570 197.38 197.38 N 197.38 03
00 CX86185 01 3/08 IndianaplsIN Manteno IL 160 1.065 1 .810 171.21 03
00 CX86185 01 3/10 FSC Ml: 160 Rate: .2570 41.12 41.12 N 41.12 03
I need to pull the price from any line that has FSC. Specifically I need the dollar amount after Rate: .xxxx
From the example, I need to pull out 197.38 and 41.12
I need to pull all the FSC numbers from a text file and total them. What pattern would work?
Thanks