From: Aredridel Date: 2003-07-07T10:05:22+09:00 Subject: Re: Need regex to match "^\n" On Sun, 2003-07-06 at 18:03, Dossy wrote: > On 2003.07.07, Jim Freeze wrote: > > I am looking for a regex that will match a line with a single > > carrot: > > > > line = "^\n" > > You've gotten some other workable suggestions, but in case this one's > interesting to you: > > line =~ /^\x5e/ line =~ /^[^]$/ > > All in the spirit of TIMTOWTDI, of course. > > -- Dossy