This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: expect module


Tom Tromey wrote:
> 
> Second, I don't understand the usage of `$' in regular expressions
> here.  Or, rather, I think I understand it, but I don't like it.  The
> manual implies that $ will match newlines.  In reality it matches the
> end of any string -- rendering it useless for my purposes.

What's wrong with putting `\n' in the regexp if you want to match newlines?

I think it is more natural generally for `$' to match end-of-string,
as there are other ways to match newlines, and it is useful to match
end-of-string on strings that contain newlines.

 - Maciej