[Ruby] Что означает этот варнинг
Alexander Bokovoy
a.bokovoy at sam-solutions.net
Tue Aug 5 18:14:36 MSD 2003
On Tue, Aug 05, 2003 at 06:11:13PM +0400, SoNaR wrote:
> Hello Ruby,
>
> warning: string pattern instead of regexp; metacharacters no longer effective
> То появляется, то исчезает. С чем он обычно связан?
> Ругается на строку вида str.split("\n\n")
1.8.0:doc/NEWS:
: String#split
if "sep" argument is a string, regular expression meta characters
are escaped internally.
--
/ Alexander Bokovoy
---
"Oh, I've seen copies [of Linux Journal] around the terminal room at The
Labs."
(By Dennis Ritchie)
More information about the Ruby
mailing list