In article ,
Dave Hinz wrote:
On 2 Feb 2005 22:18:46 -0500, DoN. Nichols wrote:
"Dave Hinz" wrote in message
...
Ah. Another tactic I use, is that if a post is crossposted to 3 or more
groups, I don't see it.
With unix wildcarding (regular expressions), the match string
would be:
Newsgroups: .*,.*,.*
to detect three or more newsgroups in the cross posting. In unix REs,
'.' stands for any character, and following it with '*' means any number
of characters (until you get to a match for the first non-wildcard
character, the ',').
Ah, so that's why I have ,.*, rather than *,*,* - although, unless
the line starts with a comma, mine would false hit on it. Why . instead
of ? in this context, I wonder? (Oh, and hi again in another place, Don!)
For Windows, at a guess, it would be more like:
Newsgroups: *,*,*
Pretty sure that'll hit in *nix as well.
Not too sure. It depends on whether the software is
implementing true REs (Regular Expressions). Note that shells do *not*
use true REs, so '*' (for filename matching) works more like it does in
Windows. I do know that the "trn", and "strn" newsreaders use the full
RE wildcarding. I'm not sure about other newsreaders. (And, of course,
only "strn" of the two has wildcarding in scoring, as only "strn" has
scoring. :-)
But certainly better than it does in older MS-DOS, where the
wildcarding is seriously broken. In particular, after being accustomed
to unix, I was trying out a project, and wanted to create some filenames
which could be blown away when done. So -- I named the file something
like SOMEXTHING.whatever, where there was an 'X' in each filename
(with a fairly wide range of names and extensions), and when done I
typed:
DEL *X*.*
Well ... it turns out that when you type '*' to DEL in MS-DOS, it fills
out to the end of the maximum filename body or extension (that is until the total
count is eight or three) with '?', so my *X*. was turned into
"????????.", and the ".*" became ".???", so it blew away everything in
the directory. However, because I did not type exactly "*.*", it did
not bother asking me "ARE YOU SURE?". :-)
I have not checked whether the MS-DOS window in Win2K does this
or not. But I *did* learn not to trust Microsoft's wildcarding. :-)
Enjoy,
DoN.
--
Email: | Voice (all times): (703) 938-4564
(too) near Washington D.C. |
http://www.d-and-d.com/dnichols/DoN.html
--- Black Holes are where God is dividing by zero ---