# Split warning

**URL:** <https://rubytalk.org/t/split-warning/1338>\
**Category:** ruby-talk\
**Created:** [22 August 2002 14:38 UTC](https://rubytalk.org/t/split-warning/1338 "2002-08-22T14:38:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mengx](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Mengx](https://rubytalk.org/u/Mengx)\
**Post date:** [22 August 2002 14:38 UTC](https://rubytalk.org/t/split-warning/1338/1 "2002-08-22T14:38:05Z")

</div>

Hi:

With the laster cvs version, ruby gives warning

$ruby -e ‘“abc”.split("\r\n")’  
-e:1: warning: string pattern instead of regexp; metacharacters  
no longer effective.

What is reason for this change?

Thanks

-Ted

---

<div class="post-metadata">

**Author:** ![Tom\_Sawyer](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@Tom\_Sawyer](https://rubytalk.org/u/Tom_Sawyer)\
**Post date:** [22 August 2002 15:32 UTC](https://rubytalk.org/t/split-warning/1338/2 "2002-08-22T15:32:26Z")

</div>

see ruby-talk 44019 and subsequent responses

-transami

> **···**
>
> On Thu, 2002-08-22 at 08:38, [mengx@nielsenmedia.com](mailto:mengx@nielsenmedia.com) wrote:
> 
> > Hi:
> > 
> > With the laster cvs version, ruby gives warning
> > 
> > $ruby -e ‘“abc”.split(“\r\n”)’  
> > -e:1: warning: string pattern instead of regexp; metacharacters  
> > no longer effective.
> > 
> > What is reason for this change?
> > 
> > Thanks
> > 
> > -Ted
> 
> –  
> ~transami

---

<div class="post-metadata">

**Author:** ![Yukihiro\_Matsumoto2](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@Yukihiro\_Matsumoto2](https://rubytalk.org/u/Yukihiro_Matsumoto2)\
**Post date:** [23 August 2002 14:46 UTC](https://rubytalk.org/t/split-warning/1338/3 "2002-08-23T14:46:11Z")

</div>

Hi,

> **···**
>
> In message “Re: split warning” on 02/08/23, Tom Sawyer [transami@transami.net](mailto:transami@transami.net) writes:
> 
> > On Thu, 2002-08-22 at 08:38, [mengx@nielsenmedia.com](mailto:mengx@nielsenmedia.com) wrote:
> > 
> > > Hi:
> > > 
> > > With the laster cvs version, ruby gives warning
> > > 
> > > $ruby -e ‘“abc”.split(“\r\n”)’  
> > > -e:1: warning: string pattern instead of regexp; metacharacters  
> > > no longer effective.
> > > 
> > > What is reason for this change?
> > 
> > see ruby-talk 44019 and subsequent responses
> 
> But still, warning for “\r\n” is too much. I will fix.
> 
> ```
> matz.
> 
> ```
