Well, the \r, \n and other \s characters that precede and follow the "sentence" are being excluded from the whole match. If "This is a sentence." has interior line breaks the only change necessary is to enable dotall, by including an "s" in the regex options.
(*ANYCRLF) is not strictly required for this particular pattern, the same result is achieved without it. I personally would always include it when working with multiple lines as that is the default I prefer. I very often use features where it does matter, e.g., using \R to match linebreaks in a subject regardless whether they are crlf's, cr's or lf's.
Parentheses are drawn around the whole match in the pattern so that mirc can retrieve it as substring 1. It strikes me as odd that mirc doesn't allow substring zero to be specified to retrieve the whole match.
Last edited by Sherip; 11/04/11 04:01 PM.