Bill Kelly
5/7/2009 12:05:00 PM
From: "Maciej Pindela" <beny18241@gmail.com>
>
> <tag>
> 2
> 3
> 4
> 5
> </tag>
>
> How to use grep to give me all form file wich start with <tag> and end
> with </tag>
>
> I've tried that way..
>
> puts File.readlines(ARGV[0]).grep(/<tag> * <\/tag>/)
puts ARGF.read.scan(/<tag>.*?<\/tag>/m)
Regards,
Bill