Support for regular expression search (related to issue 6850)