From: Gary Wright Date: 2013-02-27T13:33:55+09:00 Subject: Re: ruby split not working properly On Feb 26, 2013, at 11:24 PM, Scott Macri wrote: > I'm trying to run the following command in irb on a mac: > > something.split('\') Try something.split('\\') The backslash is used to escape special characters. In your case to encode a single quote in the string rather than terminating the string literal. IRB is behaving funny because it thinks the string is incomplete, it is looking for a closing single quote. The double-backslash encodes as a single backslash in the string. Gary Wright