Article View: news.software.readers
Article #59708Re: [slrn] possible to use 'or' expression in s-lang regular expression?
From: Thorfinn
Date: Mon, 27 Mar 2000 00:00
Date: Mon, 27 Mar 2000 00:00
37 lines
2869 bytes
2869 bytes
In news.software.readers, on 26 Mar 2000 16:21:54 GMT John E. Davis <davis@space.mit.edu> wrote: > On 26 Mar 2000 03:54:57 GMT, Thorfinn <thorfinn@netizen.com.au> > wrote: > >> 2. The regexp code must support UTF-8. > >Hrm. Support it in what way? Perl does Unicode, and... well, it's 8 > The regexp `.' matches a single character. A single character may be > represented by several bytes in the UTF-8 encoding. How many regexp > libraries assume that a single character is represented by a single > byte? Well, the perl one presumably can't assume that . is one byte, since it does unicode things, and IIRC, unicode has multibyte characters. I don't know whether it does so for UTF-8 or not, nor am I actually clear enough on the difference between Unicode and UTF-8 to be able to give you a real answer. Go prod at the library source. And, as other people have said, yes, there may not be full support across all platforms that slang is on for a specific RE library... but having the option to link in a different RE library at compile time instead of using slang's would be *really* nice. Sure, that library may not be available for VMS or whatever, but it'd be a *huge* bonus in functionality for the platforms that do have a much improved RE library. Later, Thorf -- David Goh <thorfinn@netizen.com.au> -- http://netizen.com.au/ Internet and Open Source Development, Consulting and Training Netizen Pty Ltd, GPO Box 2265U, Melbourne VIC 3000, Australia Telephone: +61-3-9614-0949 Facsimile: +61-3-9614-0948
Technical Details
Message-ID:
<slrn8dtpdh.ph1.thorfinn@netizen.com.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn8dpjcj.9s1._hate_spam_thunder7@middle.of.nowhere> <slrn8dq0rs.h84.bluemoon@ux6.cso.uiuc.edu> <slrn8dqcuf.i6u.tststs@starflower.tststs.ddns.org> <slrn8dr094.9lh.davis@aluche.mit.edu> <slrn8dr2gg.4fi.thorfinn@netizen.com.au> <slrn8dse90.aud.davis@aluche.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn8dtpdh.ph1.thorfinn@netizen.com.au> Subject: Re: [slrn] possible to use 'or' expression in s-lang regular expression? Date: Mon, 27 Mar 2000 00:00:00 +0000 From: thorfinn@netizen.com.au (Thorfinn) References: <slrn8dpjcj.9s1._hate_spam_thunder7@middle.of.nowhere> <slrn8dq0rs.h84.bluemoon@ux6.cso.uiuc.edu> <slrn8dqcuf.i6u.tststs@starflower.tststs.ddns.org> <slrn8dr094.9lh.davis@aluche.mit.edu> <slrn8dr2gg.4fi.thorfinn@netizen.com.au> <slrn8dse90.aud.davis@aluche.mit.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 602813899 X-Silly-Line: A truly wise man never plays leapfrog with a unicorn. X-Newsgroup: news.software.readers X-Complaints-To: usenet@hiro.netizen.com.au X-Trace: hiro.netizen.com.au 954131889 1605 127.0.0.1 (27 Mar 2000 04:38:09 GMT) Organization: Netizen - http://netizen.com.au/ X-Countdown-To-Y2K: 12 weeks 2 days 15 hours 33 minutes 56 seconds ago User-Agent: slrn/0.9.6.2 (Linux) Reply-To: thorfinn@netizen.com.au NNTP-Posting-Date: 27 Mar 2000 04:38:09 GMT Newsgroups: news.software.readers X-Religion: linux slrn mutt vim