Robert Klemme
4/6/2008 9:03:00 AM
On 06.04.2008 00:52, Michael Linfield wrote:
> Effect achieved via:
>
> @store = []
> IO.foreach("testpart.txt"){|x| @store << x.split(" ").grep(/#{format}/)}
>
> #format is a Regexp
If format is a regular expression why then don't you do "...grep(format)"?
Kind regards
robert