Vidya Vidya wrote: > However, i should remove the "~" at the end of the records, otherwise > its not storing in to the database properly, is there any way to avoid > "~"? str = "AAA~\nBBB~\nCCC~\nprocees" arr = str.split("~") p arr --output:-- ["AAA", "\nBBB", "\nCCC", "\nprocees"] -- Posted via http://www.ruby-forum.com/.