Why not match?

2012-05-19 Thread Xi Chen
Hello guys, I have a simple code, but it doesn't work and don't know why. Please see it below: Input file: 1.txt which including number and letter o in one line. 10o10o10 Wanted output file: 2.txt in which 10 represent 10 dots and o is replaced by letter x.

Re: Why not match?

2012-05-19 Thread Shlomi Fish
Hi Xi, On Sat, 19 May 2012 12:04:16 -0500 Xi Chen cxde...@gmail.com wrote: Hello guys, I have a simple code, but it doesn't work and don't know why. Please see it below: Input file: 1.txt which including number and letter o in one line. 10o10o10 Wanted output file:

Re: Why not match?

2012-05-19 Thread John W. Krahn
Shlomi Fish wrote: On Sat, 19 May 2012 12:04:16 -0500 Xi Chencxde...@gmail.com wrote: I have a simple code, but it doesn't work and don't know why. Please see it below: Input file: 1.txt which including number and letter o in one line. 10o10o10 Wanted output file: 2.txt in