valid

Whether this query is non-empty and (if regex) syntactically valid.