Only execute regex queries for case-insitive lookup in split.

[LMS-11402]