12-29-2008
Hi,
as regards the '^[^:]" your reasoning is right.
But "*" means zero or more occurence, thus a
no-match is a match, too.
So "'^[^:]*::'" matches the "::" part and the "^[^:]" part goes
unrecognised and consequently your term is matched.
HTH Chris
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how i can download this game n start it :S (5 Replies)
Discussion started by: BoyArcher
5 Replies
2. UNIX for Dummies Questions & Answers
Ok, i've been trying to write some shell scripts. nothing challenging, but just automating
All of the tutorials i read say to start the file with
#!/bin/bash
or whatever your path to bash is.
So i do it, and all of my scripts error out saying ./nameofscript:command not found
when i... (4 Replies)
Discussion started by: severndigital
4 Replies
3. Shell Programming and Scripting
I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly:
if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies
4. Shell Programming and Scripting
Hi All,
can you please help me to figured out what's the meaning of this.
${SERVER_DATABASE} -b << EOF 2>>/dev/null
THanks, (3 Replies)
Discussion started by: nikki1200
3 Replies
5. UNIX for Dummies Questions & Answers
I have a file of protein sequences with headers (my source file). Based on a list of IDs (which are included in some of the headers), I'd like to print out only the specified sequences, with only the ID as header.
In other words, I'd like to search source.txt for the terms in IDs.txt, and print... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
6. Shell Programming and Scripting
cat teledir.txt
jai sharma 25853670
chanchal singhvi 9831545629
anil aggarwal 9830263298
shyam saksena 23217847
lalit chowdury 26688726
If i use the below command , it is giving me the output with "," in between two name. how ? and also i would like to know the reason for the space used in... (1 Reply)
Discussion started by: Antony Ankrose
1 Replies
7. Shell Programming and Scripting
I am not a big expert in regex and have just little understanding of that language.
Could you help me to understand the regular Perl expression:
^(?!if\b|else\b|while\b|)(?:+?\s+){1,6}(+\s*)\(*\) *?(?:^*;?+){0,10}\{
------
This is regex to select functions from a C/C++ source and defined in... (2 Replies)
Discussion started by: alex_5161
2 Replies
8. Shell Programming and Scripting
I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works:
LOCAL_CONFIG
#
Kcheckaddress regex -a@MATCH
+<@+?\.++?\.(us|info|to|br|bid|cn|ru)
LOCAL_RULESETS
SLocal_check_mail
# check address against various regex... (0 Replies)
Discussion started by: RobbieTheK
0 Replies
LEARN ABOUT DEBIAN
plucene::search::termquery
Plucene::Search::TermQuery(3pm) User Contributed Perl Documentation Plucene::Search::TermQuery(3pm)
NAME
Plucene::Search::TermQuery - a query that contains a term
SYNOPSIS
# isa Plucene::Search::Query
$term_query->normalize($norm);
my $ssw = $term_query->sum_squared_weights($searcher);
my $as_string = $term_query->as_string($field);
DESCRIPTION
A query that matches a document containing a term.
Term query are the simplest possible Plucene queries and are used to match a single word. Term queries are represented by instances of the
TermQuery class and contain the desired term (word) and a field name, both are case sensitive.
The field specified in a Term query must be a document field that was specified as 'indexible' during the indexing process. If the field
was specified during indexing as 'tokenized' than the term will be matched against each of tokens (words) found in that field, otherwise,
it will be matched against the entire content of that field.
A term query may have an optional boost factor (default = 1.0) that allows to increase or decrease the ranking of documents it matches.
METHODS
term / idf / weight
Get / set these attributes
sum_squared_weights
my $ssw = $term_query->sum_squared_weights($searcher);
This will return the sum squared weights for the passed in searcher.
normalize
$term_query->normalize($norm);
to_string
my $as_string = $term_query->as_string($field);
perl v5.12.4 2011-08-14 Plucene::Search::TermQuery(3pm)