Using String.matches() as a Query filter in JDO Query yields no results

168 views Asked by At

Using the code below:

Query query = newJdoQuery();
query.setFilter("identifier.matches('partner|account')");
query.execute();

yields no result. Why?

enter image description here

However, replacing the regex part with 'partner'. The query yields 1 result. Replacing it with 'account' yields another 6 results. Have a look at the image below.

enter image description here enter image description here

0

There are 0 answers