"William James" <w_a_x_man / yahoo.com> writes:

> class String
>   def xtag(s)
>     scan( %r! ( < #{s} [^>]* > ) ( .*? )  </ #{s} > !mx )
>   end
> end
>
> gets(nil).xtag("biblioentry").each { |tag,data|
>   if data.xtag("pubdate")[0][1] > "1984"
>     print tag, data, "\n"
>   end
> }

I hope you are joking...

-- 
Christian Neukirchen  <chneukirchen / gmail.com>  http://chneukirchen.org