Am 27.10.2004 um 01:10 schrieb Timothy Martens:
So this would replace "space[space]space" with "space[X]space" It's still not working. I simply get the same (empty brackets) i the archive file?
irb(main):001:0> task_text = ' [ ] do it' => " [ ] do it" irb(main):002:0> task_text.gsub(/[\s*?]/, '[X]') => " [X] do it"
Nils-Kassubes-Computer% ruby -v ruby 1.8.2 (2004-07-29) [powerpc-darwin7.5.0]
What's the output of "ruby -v" on your Mac?