From: Jim Freeze Date: 2003-07-07T20:42:31+09:00 Subject: Re: Need regex to match "^\n" On Monday, 7 July 2003 at 11:14:29 +0900, Samuel Tesla wrote: > Jim Freeze writes: > > try this: > > puts ("^\n" =~ /^[^]/) > > > % ruby caret > > caret:1: invalid regular expression; empty character class: /^[^]/ > > Just remember, string goes on the left, regex goes on the right. > Actually, it doesn't matter, but Matz prefers the regex on the left. -- Jim Freeze ---------- Be a better psychiatrist and the world will beat a psychopath to your door.