Re: [Refdb-devel] parentheses in keywords
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mar...@mh...> - 2004-02-01 12:14:14
|
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 mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |