Jump to content

How do I filter based on the presence of a {query}?


Recommended Posts

4 hours ago, JolinM said:

it somehow seams wrong

 

It is wrong. Less/more than X is for numbers. What should “less than ‘.’” mean?

 

4 hours ago, JolinM said:

Isn’t there some more elegant way to do it?

 

Do what?

Link to post

@JolinM You could just do "If query is equal to [blank], take the first path, else (when there is a query) do the "else" action". Sounds like it should do what you want?

 

Or I may have misunderstood your question, in which case, please provide more details :) 

 

Cheers,
Vero

Link to post
17 minutes ago, JolinM said:

I thought "." was a wildcard in GREP 🤔.

 

If you mean in regular expressions, yes it is. But if you're trying to match a regular expression, you need to set it to "matches regex", not "is less than".

 

17 minutes ago, JolinM said:

I actually want to filter based on the presence of absence of a query. My keyword has «Argument optional».

 

Then use "is equal to" or "is not equal to" and leave the box empty.

 

FWIW, the correct regular expression for this case would be .+ (i.e. one or more characters). If you just use . that means “one, and only one, character”

 

Edited by deanishe
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...