AutoNotification Can I use Tasker variables as a regex value to match a notification's title?

Discussion in 'AutoApps' started by scottsome, Apr 19, 2018.

  1. scottsome

    scottsome New Member

    Joined:
    Apr 19, 2018
    Messages:
    1
    Likes Received:
    0
    To prevent having to modify a regex in multiple profiles, can I set a Tasker variable and use it in the Title Filter fields and have it match?

    e.g.
    Instead of,
    Code (Text):

    (.*group1.*)|(.*group2.*)
     
    have,
    Code (Text):

    %GroupRegex
     
    %GroupRegex would, of course, have the value of, (.*group1.*)|(.*group2.*)
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yep, should work :)

    You don't need to use .* there though, that's implied in regexes :)
     

Share This Page