On Fri, Aug 11, 2000 at 02:03:47PM +0100, Graham Barr wrote:
> On Fri, Aug 11, 2000 at 01:47:12PM +0100, Piers Cawley wrote:
> > >   /^_/
> > > 
> > > What is that matching ?
> > 
> > We've done this. It's matching a string that begins with '_'. Which is
> > why, if you want to disambiguate you do /^{_}/ just like you do with
> > variables. 
> 
> No that won't work either. That matches the string {_}
> 
> It is the fact that ^ is the first char of the re that causes to to be interpreted
> as a re special char.

Just to confuse things further, if RFC 72 (backwards regexps) is
accepted, then ^ may have this special meaning of "beginning of target
string" even in the middle of the regexp.

Peter

Reply via email to