Article View: demon.ip.support.mac
Article #5678Re: RegExp in Newshopper
From: Sean A Corfield
Date: Mon, 30 Oct 1995 00:00
Date: Mon, 30 Oct 1995 00:00
20 lines
1257 bytes
1257 bytes
In article <ACBAF939966854B32@158.152.17.67>,
peter@cara.demon.co.uk (Peter Ceresole) wrote:
|> I presume that [A-Za-z0-9\.]*,[A-Za-z0-9\.]*,[A-Za-z0-9\.]* selects a
word
|> with any of that range as first character, but then why not *,*,*?
x* means zero-or-more x's. In the first case you have zero-or-more
somethings, a comma, zero-or-more somethings, another comma and then more
somethings so it'll match stuff with two commas in it. The second case has
zero-or-more _commas_ so it'll match stuff with _no_ commas in, hence it'll
match anything.
[not very eloquent, but I hope you get the idea]
--
Could you conceive a mirror where you could never see yourself? -- ph
http://uptown.turnpike.net/~scorf
Technical Details
Message-ID:
<ACBB0ADA96682C9D06@158.152.79.67>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<ACB69CCD9668F5CC2@158.152.44.50> <ACBADAB096682044E@sw15.demon.co.uk> <ACBAF939966854B32@158.152.17.67>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f989,fd8189a923ecd2bc,start X-Google-Attributes: gid10f989,public From: sean@corf.demon.co.uk (Sean A Corfield) Subject: Re: RegExp in Newshopper Date: 1995/10/30 Message-ID: <ACBB0ADA96682C9D06@158.152.79.67> X-Deja-AN: 118297923 x-nntp-posting-host: corf.demon.co.uk references: <ACB69CCD9668F5CC2@158.152.44.50> <ACBADAB096682044E@sw15.demon.co.uk> <ACBAF939966854B32@158.152.17.67> organization: OCS newsgroups: demon.ip.support.mac