Regular expression escaping problem
jan-niestadt opened this issue · 2 comments
jan-niestadt commented
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)
jan-niestadt commented
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)
jan-niestadt commented
Should be fixed in 4a66a72