Use the same style as in Core for creating the regular expression query.