Am I right in thinking Lucene regex doesn't support lookahead?

Creating a new visualisation I just came across a curious case of regex filtering.

The following Regex Lucene filter is what I had to use to show only values containing both upper and lower caps:

Works*[A-Z].*/ and NOT (*[A-Z].*/ and NOT*[a-z].*/)

It looks pretty convoluted, but it must be done this way to not match entries in all lower- or all uppercase. The following would be simpler from a regex point of view but doesn't work. Presumably due to the lookahead?

Doesn't work*[a-z])(?=.*[A-Z]).*/

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.