+ Add Question

Search fails with error message about regular expression

ME

Search for "(no date, overdue, 7 days )" generates the error message "SyntaxError: Invalid regular expression: unmatched parentheses" and no results

Search for "(overdue, 7 days, no date)" works

Thanks

All responses

ME
Matt E
Replied on Apr 28, 2014 - 20:53

Also found another similar problem:

"@home & (overdue, 7 days, no date)" works as expected

"(overdue, 7 days, no date) & @home" ignores the tag field and shows all items, with and without the tag

Clyde Romo staff
Replied on Apr 29, 2014 - 08:01

Hi Matt,

It is generally not advised to use 3 comma-separated arguments in a bracket Of course in case of such a simple query, using just "no date, od, 7 days" is best without the bracket. I have tested this and it should work fine. Nonetheless, than you for reporting this.

As for your second issue, please note that the order that you enter your filters does have an effect on the result. For example, "tod, overdue" and "overdue, tod" will give you the same exact reports but in a different order. In this particular case, I suggest using "(@home & overdue), (@home & 7 days), (@home & no date)"

Best Regards,

Clydee