#2 closed defect (fixed)
Regular Expressions not working
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Component: | manatee |
Keywords: | Cc: |
Description
Compiled manatee from sources (manatee-bundle-open-2.59.1.tar.gz) as instructed in http://nlp.fi.muni.cz/trac/noske/wiki/Downloads (configured with --with-pcre --prefix=/usr/local) on Ubuntu 10.04 LTS yields in partially working regular expressions in Corpus Query Language.
PCRE is also compiled from sources of latest version (8.32).
$ ldd /usr/local/lib/libmanatee.so states:
libpcre.so.1 => /usr/local/lib/libpcre.so.1 - which is the latest version of PCRE compiled from sources.
/usr/local/include/finlib/config.hh contains:
/* Define to 1 if using pcre regexps */
#define USE_PCRE 1
Partially working regular expressions means that regular expressions are working on structure attributes, but not working on corpus attributes, for example, the query
[someattr="non regexp"] within <somestruct somestructattr="some regexp" />
works, but
[someattr="some regexp"] within <somestruct somestructattr="some regexp" />
does not work.
Previous version (manatee-bundle-open-2.33.1.tar.gz) worked correctly.
Change History (3)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Cc: | peterisp@… removed |
---|---|
Priority: | major → minor |
Resolution: | → fixed |
Status: | new → closed |
comment:3 Changed 11 years ago by
It seems, that there were some linking/include file problems with the correct pcre version. Now it is working correctly.
Sorry, for the mislead.
Best regards, Didzis.
Hm, it's quite strange that it would be working for positional but not structure attributes.
corpquery
command line utility, does it work?Best, Milos Jakubicek