D
David Rio
Hi there,
A friend of mine asked me to write a script that reads a file and
marks the double characters.
Something like:
$ ruby scratch_ruby_drio.rb
INPUT
---------
test. AA. I greatXXrr love it.
audi tt uu yes.
stop here, axmmen.
OUTPUT
------------
{3} test. *AA*. I great*XX**rr* love it.
{2} audi *tt* *uu* yes.
{1} stop here, ax*mm*en.
I coded something up that works but I don't like it:
http://gist.github.com/133299
Do you guys have any other alternatives?
-drd
A friend of mine asked me to write a script that reads a file and
marks the double characters.
Something like:
$ ruby scratch_ruby_drio.rb
INPUT
---------
test. AA. I greatXXrr love it.
audi tt uu yes.
stop here, axmmen.
OUTPUT
------------
{3} test. *AA*. I great*XX**rr* love it.
{2} audi *tt* *uu* yes.
{1} stop here, ax*mm*en.
I coded something up that works but I don't like it:
http://gist.github.com/133299
Do you guys have any other alternatives?
-drd