+ Add Question

Invalid expression

H

The following expression provides error message:
(overdue, no due date, 7 days) & !@label1
SyntaxError: Invalid regular expression: /days)/: Unmatched ')'

The same expression with 31 days - instead of 7 days - works, but not as expected, as it does not filter out @label1 tasks from no due date list.
(overdue, no due date, 31 days) & !@label1

Please advise.

All responses

Brendon Wadey staff
Replied on Apr 01, 2014 - 23:36 UTC

Hi,

I can confirm that using that syntax with 7 days gives an error message. I will pass this along to the developers.

Though, when using 30 days, it does indeed remove @label1 from the list. Though, I did try this without the number. Can you see if it works with a label that has no number in it?

Regards,
Brendon.

H
hunyad.viktor premium
Replied on Apr 02, 2014 - 09:19 UTC

Actually I replaced my personal label with label1. This is what I use exactly:
(overdue, no due date, 31 days)&!@perbál

This does NOT filter out @Perbál labels from no due date list. However, it DOES filter out @Perbál tasks from 31 days and overdue. I could send you screenshot.

I tried to use the below query as a workaround even if it looks strange:
(overdue, no due date&@!perbál, 31 days)&!@perbál
It works perfectly on web, but provides empty list on iPhone, so it works differently on different platforms. Because of this, finally I can not use this workaround neither.

David Trey staff
Replied on Apr 02, 2014 - 14:19 UTC

Hello Viktor,

Please don't use 3 parameters within one parenthesis if you want to separate all with a comma. That said, you could either use this filter:

(overdue | no date | 7 days) & !@label1

or this one, if you want to have the result list separated correctly:

(overdue & !@label1), (no date & !@label1), (7 days & !@label1)

As for iOS - we're aware of this issue and will look into it. Sorry for the inconvenience.


Best regards,
David

H
hunyad.viktor premium
Replied on Apr 02, 2014 - 15:12 UTC

I tried, it still works on web.
On iPhone it inserts additional unneccessary & signs:

(overdue & !@label1), & (no date & !@label1), & (7 days & !@label1)

Maybe this is the iOS issue you referred to.

David Trey staff
Replied on Apr 02, 2014 - 17:13 UTC

Viktor,

Yes, on iOS it's a bit buggy right now and we're fixing it for the next update. Sorry for the inconvenience.


Best regards,
David

H
hunyad.viktor premium
Replied on Apr 19, 2014 - 10:22 UTC

Is there any news on correcting iPhone filtering bugs?

David Trey staff
Replied on Apr 20, 2014 - 21:46 UTC

Hello Viktor,

We're working on it right now and will release an update soon.


Best regards,
David