Thanks a lot everyone. G and Y in the example could be any chars. I have a question for ig. In your post you replied that the literal '-' in
represents one char and the char set represented another char and that is the reason why two chars was replaced. But the set contains a ^ symbol which tells system not to consider the chars given in the set. So could you let me know exactly what happens in the above stmnt.
Thanks.