Re: Record-separator is a regular expression
- From: Gavin Kistner <gavin@xxxxxxxxxxxx>
- Date: Wed, 30 Nov 2005 00:21:04 +0900
On Nov 29, 2005, at 7:08 AM, James Edward Gray II wrote:
On Nov 29, 2005, at 7:51 AM, Gavin Kistner wrote:On Nov 29, 2005, at 6:22 AM, William James wrote:Unlike Gawk and Mawk, Ruby won't accept a regular expression as a record-separator.p data.split( /-+| +|\n/ ) #=> ["name", "age", "size", "Gavin", "32", "33"]
William is talking about the separator used by IO objects, $/.
Ah...thanks :)
.
- References:
- Record-separator is a regular expression
- From: William James
- Re: Record-separator is a regular expression
- From: Gavin Kistner
- Re: Record-separator is a regular expression
- From: James Edward Gray II
- Record-separator is a regular expression
- Prev by Date: Re: GUI IDE for Ruby
- Next by Date: Re: GUI IDE for Ruby
- Previous by thread: Re: Record-separator is a regular expression
- Next by thread: Re: Record-separator is a regular expression
- Index(es):