From: Automat.Svet@... Date: 2005-04-14T02:04:38+09:00 Subject: pattern matching question Hi! newbie here... sorry for the annoying question... I'm working on small utility that should extract the grand total from a number of invoices, I've found no problem till now extracting various infos from my invoices (date, invoice #, etc) no I' mtrying to match a pattern like this one : 297,12^[2 where 297,12 is the grand total. I really don't know what ^[2 is but I can find it in many rows of every document and is my only "anchor" to get exactly the grand total row instead of single items prices. I've tried matching the file with this regular expression: line =~ /(\d+),(\d+)\^\[2/ but with no success I'd really appreciate any tips and ideas! Thanks in advance automat_svet