logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: parentheses in keywords: msg#00000

Subject: Re: parentheses in keywords
Markus Hoenicka writes:
 > In any case, I feel the missing closing paren is a bug in the query
 > parser. It should work with less quoting. I'll investigate this.
 > 

Ok, here goes. I've changed the query language a little in order to
let the user decide whether or not to use regular expressions. So far
RefDB used regexps in basically all string matches. I've now changed
the meaning of "=" in the query language to "literal match", whereas
the new operator "~" means "regexp match".

Second, I've fiddled a little with the quoting stuff. refdbc now makes
sure to keep the quotes of quoted arguments like :KW:='what
ever'. This makes quoting on the command line a little easier.

As a result, all of the following should now work as expected:

refdbc: getref :KW:='52-67-5 (Penicillamine)'

refdbc: getref :KW:~'52-67-5 \(Penicillamine\)'

refdbc -d alltypes -C  getref ":KW:='52-67-5 (Penicillamine)'"

refdbc -d alltypes -C  getref ":KW:~'52-67-5 \(Penicillamine\)'"

If you don't want to use the CVS version, hang on for a day or
two. I'm planning to release the next prerelease fairly soon.

regards,
Markus

-- 
Markus Hoenicka
markus.hoenicka@xxxxxxx
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn


<Prev in Thread] Current Thread [Next in Thread>