Re: Do Regex Character Classes Work in SLRN Score File?
"John E. Davis" <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <[email protected]> |
Paul Burton <[email protected]> wrote: > Score:: -9000 %Off Topic > Subject: \c[[:space:]][^[:alnum:]]?O\.?T\.?[^[:alnum:]]?[[:space:]] > Subject: \cRe.*[[:space:]][^[:alnum:]]?O\.?T\.?[^[:alnum:]]?[[:space:]] These REs are not supported. The slang REs were written more than 15 years ago based upon an Ultrix ex man page and have have not really changed much since then. After 0.9.9 is released, I plan to migrate to the onigurama RE library. I do not want to use the PCRE library because its support for UTF-8 is not very robust. With that said, I believe that your last RE can be written as Subject: \c^Re\C.*[ \t][^a-z0-9]?O\.?T\.?[^a-z0-9]?[ \t] Note that I added '^' before "Re" to anchor the RE to the beginning of the subject field. You can find out what REs the slang library supports at <http://www.jedsoft.org/slang/doc/html/slang-22.html#ss22.1>. --John ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/