1: 2: 3: 4: 5:
File.foreach("c:/file.txt"){|line| if line =~/(plan.........)|([S]ecre........)|([s]ecre........)/ then puts line end }