From: Dossy Date: 2003-07-07T09:03:35+09:00 Subject: Re: Need regex to match "^\n" 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/ All in the spirit of TIMTOWTDI, of course. -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)