From: "Horváth Alex" Date: 2013-02-13T01:15:47+09:00 Subject: Re: text include, searching using a part of the word, storing the whole word if found Joel Pearson wrote in post #1096489: > Gotta love Regexp > > irb(main):001:0> e = '???x.Y??? and then ???a.m???' > => "???x.Y??? and then ???a.m???" > irb(main):002:0> e.scan /\?{3}\w+\.\w+\?{3}/ > => ["???x.Y???", "???a.m???"] > > Once you have an array you can do what you like with the contents. There > are plenty of examples around of writing to text files. Thanks a lot! Yes I'll manage to look after how to write to files, but I couldn't find a solution for this by searching. Br, Alex -- Posted via http://www.ruby-forum.com/.