From: gminick Date: 2002-09-24T04:42:28+09:00 Subject: Re: Speed up suggestions On Tue, Sep 24, 2002 at 03:58:48AM +0900, Vincent Foley wrote: > #!/usr/bin/env ruby > > wordList = open('/home/vince/fr_dict.txt', 'r').read.split('\n') > repl = { > '_' => '[a-�]', > '(v)' => '[a�?�e??�i�?o��u??�y]', > '(c)' => '[bcdfghjklmnpqrstvwxyz]', > '(e)' => '[�e??�]' > } I'm not even sure, what your code does, but try this: repl = { '_' => '[a-�]', '\(v\)' => '[a�?�e??�i�?o��u??�y]', '\(c\)' => '[bcdfghjklmnpqrstvwxyz]', '\(e\)' => '[�e??�]' } and the rest of your code... ;) -- [ Wojtek gminick Walczak ][ http://gminick.linuxsecurity.pl/ ] [ gminick (at) hacker.pl ][ gminick (at) underground.org.pl/ ]