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/.