On Jul 23, 2009, at 04:35 , Karan Rajput wrote: > Ryan Davis wrote: >> On Jul 23, 2009, at 01:27 , Karan Rajput wrote: >> >>> - one >>> >>> above consistent format? >> yaml only provides the extra characters when the result would be >> ambiguous. "- one" can't be seen as anything other than an array >> element with the string one in it. "- 4,6" is ambiguous, so yaml >> provides the extra quotes to disambiguate. I suggest you use a real >> yaml parser instead of relying on regexps and duct tape. The spec is >> well written and very clear about such things. > > Hi Ryan, > > Thanks for suggestion. But I am not clear about real yaml parser. As i > am using yaml package in ruby. > > Could you please elaborate? As you said: "I am passing this string to some else database program which need clear distinction between string and integer" SOMEONE is not using a real yaml parser... since yaml DOES have a clear distinction between strings and integers.