INL/BlackLab

Regular expression escaping problem

jan-niestadt opened this issue · 2 comments

It appears to be impossible to search for a $ character. This query doesn't parse:

[word="\$"]

Produces: Syntax error in CorpusQL pattern: Invalid query: unexpected end-of-string (while parsing regex)

(various attempted workarounds like using two or three slashes don't work either, and shouldn't be necessary anyway)

Same problem occurs with [word=l'$'] (which makes sense, because literal searching is implemented by generating a regex with escaping), so it produces the same Lucene query as above)

Should be fixed in 4a66a72