Thread View: news.software.nntp
5 messages
5 total messages
Started by TTTTT
Tue, 19 Dec 2000 19:30
Do any one no how the wildmat command works
Author: TTTTT
Date: Tue, 19 Dec 2000 19:30
Date: Tue, 19 Dec 2000 19:30
135 lines
5895 bytes
5895 bytes
I am trying to do a search with newspro and I need to no how to send the
right wildmat command to the newsserver
I'm trying to uses the (or) sign like
Exp. .avi | .mpg
(.avi, mpg)
I search everywhere for the info the only info I found in 3 hours is this
http://www.landfield.com/faqs/usenet/software/inn-faq/part4/section-12.html
http://fag.grm.hia.no/dt2311/man/man3/wildmat.html#index
I read it over and over and still don't understand
Can someone please point be to more info about the wildmat command.
Something with a lot of example at lease the basic (and,or ,not) commands
Thanks
T
This is from newspro help
Search servers for patterns
NewsPro makes use of the XPAT command that allows search on newsservers
given a (classical) wildmat pattern. To perform a search - create a
newsgroup which name starts with '#', e.g. #JavaScriptSearch. Open the
newsgroup and press the get new headers button. A dialog will appear.
Enter
a list of newsgroup (you can make use of the 'newsgroup list' button to
switch to the newsgroup list and put selected newsgroup into clipboard
with
the help the 'copy selected' or 'copy all' entry in the context menu.
Enter
a wildmat pattern, select a header field and press OK. The program can
automatically transform a wildmat pattern to perform a case insensitive
search (but letters between brackets remain intact e.g. [a-z] is not
transformed to [a-zA-Z]).
You can open as many search 'groups' as necessary each with its own search
criteria. If a search criteria is changed during performing a search -
already running tasks for the corresponging search group will be finished
with the previous search criteria and pending tasks will be eventually
scheduled to run with the new search criteria with output to the same
search
group.
Use the reset option or delete search groups to remove downloaded
headers.
Deleting headers or marking them read will be applied to all database as
in
the case with usual newsgroups - in search newsgroups headers are not
disappearing by themselves.
One small issue is arising during resetting or restoring the database when
headers in search groups do not belong to any subscribed group. In that
case
the #~TrashBin group will be created which will adopt all such headers.
Wildmat patterns - classical and boolean
Here is the description of the 'classical' wildmats (e.g. for server
searches):
Wildmat compares the text against the pattern and returns non-zero if
the
pattern matches the text. The pattern is interpreted according to rules
similar to shell filename wildcards. The pattern is interpreted as
follows:
\x
Turns off the special meaning of x and matches it directly; this is used
mostly before a question mark or asterisk, and is not special inside
square
brackets.
?
Matches any single character.
*
Matches any sequence of zero or more characters.
[x...y]
Matches any single character specified by the set x...y. A minus sign may
be
used to indicate a range of characters. That is, [0-5abc] is a shorthand
for
[012345abc]. More than one range may appear inside a character set;
[0-9a-zA-Z._] matches almost all of the legal characters for a host name.
The close bracket, ], may be used if it is the first character in the set.
The minus sign, -, may be used if it is either the first or last character
in the set.
[^x...y]
This matches any character not in the set x...y, which is interpreted as
described above. For example, [^]-] matches any character other than a
close
bracket or minus sign.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> in 1986, and posted to Usenet
several times since then, most notably in comp.sources.misc in March,
1991.
The program extends wildmats by allowing case-sensitive searches and
boolean
expressions with nested parentheses which operands are wildmats. '^' means
NOT, '|' - OR, '&' - AND. For example: ^(*xxx*|*buy*|*blow*) will ban all
articles which contain xxx, buy, blow. But the extended wildmats can be
used
only inside the program, because newsservers don't understand them, so use
them only in the selection, find dialogs and filters. '^' has the highest
precedence; '&' has higher precedence than '|'.
--
====== Please DELETE This Line and Everything Below It When Replying! ====
THIS NEWSGROUP is only for questions about newsgroups and the Internet.
IF YOU HAVE questions on other topics, search for appropriate newsgroups
using http://www.geocities.com/nnqweb/ngroups.html
LEARN about newsgroups at the news.newusers.questions Web site:
http://www.geocities.com/nnqweb/
======= The moderators append this notice to each posted article; ========
======= It does not imply that the article is on topic or correct ========
Re: Do any one no how the wildmat command works
Author: Russ Allbery
Date: Wed, 20 Dec 2000 01:33
Date: Wed, 20 Dec 2000 01:33
35 lines
2281 bytes
2281 bytes
TTTTT <ttttt@ttttt.net> writes: > I am trying to do a search with newspro and I need to no how to send the > right wildmat command to the newsserver > I'm trying to uses the (or) sign like > Exp. .avi | .mpg > (.avi, mpg) wildmat as commonly implemented doesn't support this. Some versions of INN may do the right thing if you use a comma, but this is new with the current draft of the NNTP standards and isn't official yet. [...] > The program extends wildmats by allowing case-sensitive searches and > boolean expressions with nested parentheses which operands are > wildmats. '^' means NOT, '|' - OR, '&' - AND. For example: > ^(*xxx*|*buy*|*blow*) will ban all articles which contain xxx, buy, > blow. But the extended wildmats can be used only inside the program, > because newsservers don't understand them, so use them only in the > selection, find dialogs and filters. '^' has the highest precedence; '&' > has higher precedence than '|'. The above is the paragraph that I think is directly relevant to what you're trying to do. Note the part about "the extended wildmats can only be used inside the program." (I'm disappointed that they chose to extend wildmat rather than just using a more suitable pattern matching language for their own purposes, but whatever.) -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: Do any one no how the wildmat command works
Author: Bill Cole
Date: Wed, 20 Dec 2000 14:38
Date: Wed, 20 Dec 2000 14:38
42 lines
2866 bytes
2866 bytes
In article <yl4rzzvpv4.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >TTTTT <ttttt@ttttt.net> writes: [...] > >> The program extends wildmats by allowing case-sensitive searches and >> boolean expressions with nested parentheses which operands are >> wildmats. '^' means NOT, '|' - OR, '&' - AND. For example: >> ^(*xxx*|*buy*|*blow*) will ban all articles which contain xxx, buy, >> blow. But the extended wildmats can be used only inside the program, >> because newsservers don't understand them, so use them only in the >> selection, find dialogs and filters. '^' has the highest precedence; '&' >> has higher precedence than '|'. > >The above is the paragraph that I think is directly relevant to what >you're trying to do. Note the part about "the extended wildmats can only >be used inside the program." > >(I'm disappointed that they chose to extend wildmat rather than just using >a more suitable pattern matching language for their own purposes, but >whatever.) I understand why a newsreader author would make that choice. See Forte Agent for an example of the potential user-bewilderment of multiple filtering languages. If the newsreader supports XPAT searches well it will need some wildmat support anyway, and building on that makes more sense than having another pattern-matching language. In addition, a very smart offline reader (it doesn't look like this applies to this case...) could hide from the user the issue of where searches are being done, if wildmat is the basis of its sole pattern-matching language. It could search for a pattern in headers it already has and in any fresh messages on the server in what looks like one step. -- Bill Cole I work for MAPS, but I do not speak for MAPS This message is the official opinion of the voices in my head.
Re: Do any one no how the wildmat command works
Author: TTTTT
Date: Wed, 20 Dec 2000 18:22
Date: Wed, 20 Dec 2000 18:22
22 lines
2149 bytes
2149 bytes
> I understand why a newsreader author would make that choice. See Forte > Agent for an example of the potential user-bewilderment of multiple > filtering languages. If the newsreader supports XPAT searches well it will > need some wildmat support anyway, and building on that makes more sense > than having another pattern-matching language. > > In addition, a very smart offline reader (it doesn't look like this > applies to this case...) could hide from the user the issue of where > searches are being done, if wildmat is the basis of its sole > pattern-matching language. It could search for a pattern in headers it > already has and in any fresh messages on the server in what looks like one > step. > I agree on that it should me as easy as saying (mpg and avi) or what ever and the program translate it to wildmat T
Re: Do any one no how the wildmat command works
Author: Russ Allbery
Date: Wed, 20 Dec 2000 22:30
Date: Wed, 20 Dec 2000 22:30
20 lines
1823 bytes
1823 bytes
TTTTT <ttttt@ttttt.net> writes: > I agree on that it should me as easy as saying (mpg and avi) or what > ever and the program translate it to wildmat The problem is, you can't, easily, unless you have available the extended wildmat syntax that we're now trying to standardize. You need an alternation operator to do that, and comma wasn't widely available for alternation in all wildmats previously. (And may still not be available in XPAT, depending on whether we can manage to standardize XPAT or not; it has Issues.) What the program could do is do multiple separate wildmat matches and combine the results. (This has the worrisome possibility of degrading into an expontential number of wildmat matches with complicated alternation, though.) -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads