From: Ceri Storey Date: 2003-12-12T03:31:11+09:00 Subject: Re: problems with racc: $end token On Fri, Dec 12, 2003 at 03:17:51AM +0900, Luke A. Kanies wrote: > This code strips out the 'a' in 'alias'. In other words, the anchor '^' > is anchoring against the beginning of a line, rather than the beginning of > the string. I had that problem a day or two ago... > How do I specifically anchor against the beginning of a string in ruby, > _not_ the beginning of a line in a string? Use \A for the beginning, and \Z for the end. I believe. -- Ceri Storey