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] |
Maciej Stachowiak <mstachow@alum.mit.edu> writes: > `$' only appears to have this behavior, according to the regcomp > documentation, when the REG_NEWLINE flag is passed: > > : `REG_NEWLINE' > : Treat a newline in STRING as dividing STRING into multiple lines, > : so that `$' can match before the newline and `^' can match after. > : Also, don't permit `.' to match a newline, and don't permit > : `[^...]' to match a newline. > : > : Otherwise, newline acts like any other ordinary character. Sigh... so much for intuition. I should have looked it up instead of relying on it---sorry.