AutoNotification Multiple Notification values

Discussion in 'AutoApps' started by scotts, Sep 7, 2017.

  1. scotts

    scotts Member

    Joined:
    Jun 19, 2015
    Messages:
    138
    Likes Received:
    1
    How do I set multiple values in the notification text filter?

    I want to match words One and Two in a notification.

    Is it simply...One,Two?


    Sent from my SM-N950U using Tapatalk
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,338
    Likes Received:
    784
    Use regex and then something like

    Code (Text):
    (One)|(Two)
    Hope this helps!
     
  3. scotts

    scotts Member

    Joined:
    Jun 19, 2015
    Messages:
    138
    Likes Received:
    1
    Thank you, though that acted like 'or' instead of 'and'.

    Sent from my SM-N950U using Tapatalk
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,338
    Likes Received:
    784
    Oh sorry! I thought you meant an "or"!
    If you want and "and" independent of order you'd need something like this:
    Code (Text):
    (One.+Two)|(Two.+One)
    This means that it's matching One followed by one or more characters followed by Two OR Two followed by one or more characters followed by One
    Hope this helps!
     
  5. scotts

    scotts Member

    Joined:
    Jun 19, 2015
    Messages:
    138
    Likes Received:
    1
    What if I wanted to search for 3 words? I've attempted to quick study regular expression, but really confusing.

    I tried...(One.+Two+Three)|(Two.+One+Three)|(Three.+One+Two)

    Sent from my SM-N950U using Tapatalk
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,338
    Likes Received:
    784
    It should be

    Code (Text):
    (One.+Two.+Three)|(Two.+One.+Three)|(Three.+One.+Two)
     
  7. scotts

    scotts Member

    Joined:
    Jun 19, 2015
    Messages:
    138
    Likes Received:
    1
    Thank you.

    Sent from my SM-N950U using Tapatalk
     
  8. sretlow

    sretlow New Member

    Joined:
    Aug 29, 2017
    Messages:
    25
    Likes Received:
    1
    joaomgcd likes this.
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,338
    Likes Received:
    784
    Thanks :) That looks indeed great!
     
  10. scotts

    scotts Member

    Joined:
    Jun 19, 2015
    Messages:
    138
    Likes Received:
    1
    This is a good way to test, though I wish there was a laymen's version

    Note8 Tapatalk
     
  11. moark

    moark New Member

    Joined:
    Jul 2, 2019
    Messages:
    2
    Likes Received:
    0
    I'm trying to use the notification text filter to include Fridge or Pantry. Are you saying I should enter the following under 'Notification Text' and select 'Check to match with Regex'?
    (Fridge)|(Pantry)
     

    Attached Files:

  12. moark

    moark New Member

    Joined:
    Jul 2, 2019
    Messages:
    2
    Likes Received:
    0
    reference for my previous post
     

    Attached Files:

: regex

Share This Page