▲ 0 r/tasker

Regex pattern matching inconsistency

While working on a small task that uses two arrays, where for an element in array %names_array I need to find the corresponding elements in another array, I ran into what I believe is an inconsistency on how Tasker handles variable substitution within regular expressions.

As a simplified example, I have %names_array with two elements:

Do.Maguire 35

Da.Maguire 43

representing two people with the last name Maguire, each preceded with enough information to make the non-numeric part of each element unique (imagine the names are Donald Maguire and David Maguire). In use, the array contains about 50 names, but this is just an example.

I need to find all elements that may correspond to the full name Donald Maguire. To do this I'm extracting the last name from the full name, setting the variable %last_name to Maguire. I then use Array Set to populate %matches_array with matching elements from %names_array:

    A7: Array Set [
         Variable Array: %matches_array
         Values: %names_array($,?~R^(\p{L}+\.)?%last_name\s{2}\d{2}$)
         Splitter: , ]

Unfortunately, what I end up with in %matches_array is two elements:

%names_array($

?~R^(\p{L}+\.)?%last_name\s{2}\d{2}$)

But if I instead set variable %regex to the desired pattern first, then reference that variable in the Array Set action:

    A3: Variable Set [
         Name: %regex
         To: ^(\p{L}+\.)?\%last_name\s{2}\d{2}$
         Structure Output (JSON, etc): On ]
    
    A4: Array Set [
         Variable Array: %matches_array
         Values: %names_array($,?~R%regex)
         Splitter: , ]

I get these two elements in %matches_array:

Do.Maguire 35

Da.Maguire 43

When using the Simple Match/Regex action, I get the opposite results - defining the Regex in a separate variable first doesn't work, and using the Regex directly in the action does work.

This seems inconsistent to me. Below is a task description and and a task URL that demonstrate this. Am I missing something?

    Task: Regex Test
    
    A1: Array Set [
         Variable Array: %names_array
         Values: Do.Maguire  35,Da.Maguire  43
         Splitter: , ]
    
    A2: Variable Set [
         Name: %last_name
         To: Maguire
         Structure Output (JSON, etc): On ]
    
    A3: Variable Set [
         Name: %regex
         To: ^(\p{L}+\.)?\%last_name\s{2}\d{2}$
         Structure Output (JSON, etc): On ]
    
    A4: Array Set [
         Variable Array: %matches_array
         Values: %names_array($,?~R%regex)
         Splitter: , ]
    
    A5: Flash [
         Text: %matches_array()
         Tasker Layout: On
         Background Colour: #FFD03636
         Timeout: 10000
         Dismiss On Click: On
         Position: Top ]
    
    A6: Array Clear [
         Variable Array: %matches_array ]
    
    A7: Array Set [
         Variable Array: %matches_array
         Values: %names_array($,?~R^(\p{L}+\.)?%last_name\s{2}\d{2}$)
         Splitter: , ]
    
    A8: Flash [
         Text: %matches_array()
         Tasker Layout: On
         Background Colour: #FFD03636
         Timeout: 10000
         Dismiss On Click: On
         Position: Top ]
    
    A9: Simple Match/Regex [
         Type: Regex
         Text: %names_array(1)
         Regex: %regex ]
    
    A10: Flash [
          Text: %mt_match
          Tasker Layout: On
          Background Colour: #FFD03636
          Timeout: 10000
          Dismiss On Click: On
          Position: Top ]
    
    A11: Variable Clear [
          Name: %mt_match ]
    
    A12: Simple Match/Regex [
          Type: Regex
          Text: %names_array(1)
          Regex: ^(\p{L}+\.)?%last_name\s{2}\d{2}$ ]
    
    A13: Flash [
          Text: %mt_match
          Tasker Layout: On
          Background Colour: #FFD03636
          Timeout: 10000
          Dismiss On Click: On
          Position: Top ]

Task URL: Check out my Tasker Task "Regex Test!"

taskertask://H4sIAAAAAAAA/+1Y3W/aMBB/bv4KK+sq0Gi+E4IaMtHRTpXoHijqy9CQS1yaDRKUGLqq6v722TGEUEz4qjRtywvYd+fz785353OcDox/oKgJMQRxVBdF4E39uqiKAE/roiVVJev0DmEousKRQ2UTKUwGlkppR07fgxi5atW2TE1TFDLQHZkRKRulbMs2bEtRNduRUcr2PddSHZn80VkwQm4bDdBP0EExdmQ6p/Rx5LuqojgyHVBCo4/9MEiwwD5WRDBFdbGaACKIQg+5umkQGHSU0G5wxKSjwUxaF933ARyhuAejCD45MhFZkVVT2WYoXcPBxI8QALpZacLF1ND5i7V0cSUVcGQGnWOFyrHCNKqbrRjCGPeoKZtsmCHOiF0FOIsWDuuiIsorPD2HZ+TwzBlP5/CsGU9lvDzH8M7XNGqbPTPCvRHE/Qe+xWoO8h28kYecd6Z6zcoiP58E3hAtwCfUI+cWDuOESLaa0Uh+ICx5fjAY+nH/QYKBF4W+J+EkhaX2RevitvGl07tttK8a562LG/dkiM+I5WRFg8Y4y/CTAT6jDBb3vR11KnQ5dewgCifjuFQWPicDgaqUD9C5PyR1Dik56959SDwqXMXgmk4FHE0Q8O8BfkAkWR9hDCBIBCvgnvgYgZByHv0YHWCBepgF2pIFAgP+CQaAAAzBHQKw30dxjDxA4RMy3eQAuNocrpyJDkojJXfHENsvMk/x0xi5X1vf4RRKQxgMJAZkdwBME8sZmSYNyyqZpdXanFfnec2t19mLoaSW+XVVT8W/lbrj59bLh65U/rioxt34WXvpeuTnmK/AmCvYWEY0bgG037wAZm8NZQnd8roVL2aZK6Uzq3XhtE44XoNq5UbJKjDXw9JyzlZ/tWztMSyxXm+WYVmpIe8uL5uKbukW/5Sr63XYqQ7S3ND2hueO2ta3DT9KtmggItpybWoeskHe3RTlf0Vfoe/bNiYptW3juFRLjisff7WZv9dUlR2bRmPvypC1oVQuCsR/UCBMbsBvUSD4AZ+zk/WHUmvjTfw2WVctsq7Ium2zzi7egMUbsHgD/uNvwLwmeuuHXq145xUXykqUODL98O4K7J99rHeF34LdAYW6FwAA

reddit.com
u/UnkleMike — 8 days ago
▲ 2 r/tasker

Wi-Fi Connected / Wi-Fi Changed contexts not working

About a month ago I posted about a problem I was having the the latest beta, where Wi-Fi Connected contexts weren't activating while the display was off. I've since done some testing with the release version on another device, as well as testing the new Wi-Fi Changed event context in the latest beta, and none of it seems to work with the display off.

This is happening on devices where Wi-Fi Connected was previously working, but I'm not sure how long this has been an issue. Can anyone reproduce this or is it just me having this issue?

reddit.com
u/UnkleMike — 15 days ago
▲ 2 r/oneui

Direct Voicemail helps eliminate spam voicemail

For as long as I've had a cell phone I've been using carrier voicemail, and as long as I've been able to, I've been blocking spam calls. It's always annoyed me that these blocked callers can still leave voicemail. But not any more.

Following the update to One UI 8.5 on my Galaxy S23 Ultra, after a little experimentation, I called my carrier (AT&T) and had them disable carrier voicemail on my line, and I am now exclusively using Direct Voicemail. The beauty of this is that these blocked callers are now unable to leave voicemail, while callers that aren't blocked can still leave voicemail and I can screen calls.

Obviously this won't work well for anyone who turns their phone off at times, but for me it's been a huge improvement with regard to spam callers.

reddit.com
u/UnkleMike — 1 month ago

Bulk delete spam & blocked senders

I have messages in spam & blocked dating back 3+ years, and I'm trying to bulk delete them, but can't seem to find a way to select more than one thread at a time. Am I missing something?

Also, is there a way to send such messages to trash (now that it exists) in the future so they are automatically deleted after 30 days?

reddit.com
u/UnkleMike — 2 months ago
▲ 1 r/tasker

Reverting from 6.7.5-beta to latest play store release

I'm having trouble with a few things using the beta and am considering reverting to the release version as a troubleshooting step, and possibly staying on the release version of the problems go away. I envision some potential complications:

  • I anticipate having to remove and reinstall, rather than installing the release over the beta, leaving me to reproduce permissions and battery optimizations (or lack thereof)
  • Not being able to restore a beta backup to a release version leaving me with my configuration as it was prior to installing the beta

What am I in for if I do this?

reddit.com
u/UnkleMike — 2 months ago
▲ 5 r/tasker

Run Log Archiver

I've been doing a lot of troubleshooting lately and needing to examine the run log. One frustrating aspect of doing so is the naming of the "archived" run log: runlog.txt.1, which unnecessarily complicates opening the file with a text viewer/editor. A second frustrating aspect is that the age of the run log, including the archive, can be too short. I decided to address both of these frustrations using Tasker itself, by creating a profile and task that both renames the file once it is created, and keeps a user-definable history of these files.

The profile activates any time a file is moved to Tasker/log/, which includes renaming the current runlog.txt to runlog.txt.1, and renames runlog.txt.1 to runlog <last_modified_time>.txt, and then sorts the archived run logs in descending name order, and deletes the 20th (user-definable) one, thus keeping a active run log plus 19 previous run logs.

Here's a Taskernet link.

Here's the description (for those on desktop who can't view the description on Taskernet, or who want to recreate the profile manually):

    Profile: Run Log Archiver
    Variables: [ %max_logs:has value ]
    Event: File Modified [ File:Tasker/log/ Event:MovedTo ]
    
    
    
    Enter Task: Anon
    
    A1: Get Files/Folders Properties [
         Path: Tasker/log/
         Type: Files
         Name/Path Filter: ~Rrunlog\.txt\.1$ ]
    
    A2: If [ %lfp_full_path(1) Set ]
    
        A3: Parse/Format DateTime [
             Input Type: Milliseconds Since Epoch
             Input: %lfp_modification_date(1)
             Output Format: yyyy-MM-dd-HH-mm-ss
             Formatted Variable Names: %filename
             Output Offset Type: None ]
    
        A4: Variable Set [
             Name: %new_name
             To: %lfp_full_path(1)
             Structure Output (JSON, etc): On ]
    
        A5: Variable Search Replace [
             Variable: %new_name
             Search: runlog\.txt\.1$
             Replace Matches: On
             Replace With: runlog %filename.txt ]
    
        A6: Move [
             From: %lfp_full_path(1)
             To: %new_name
             Use Global Namespace: On ]
    
        A7: Get Files/Folders Properties [
             Path: Tasker/log/
             Type: Files
             Name/Path Filter: ~R\d{2}\-\d{2}\.txt$
             Sort: ModificationDateReversed ]
    
        A8: Delete File [
             File: %lfp_full_path(%max_logs)
             Shred Level: 0
             Use Global Namespace: On ]
            If  [ %lfp_full_path(%max_logs) Set ]
    
    A9: End If
reddit.com
u/UnkleMike — 2 months ago
▲ 4 r/tasker

Wi-Fi connected activation delay with beta (6.7.x)

Since updating to the beta version of Tasker (6.7.4 and 6.7.5), I've had problems with profiles using the Wi-Fi connected context activating.

I work in a hospital, and have about a dozen profiles that use the Wi-Fi connected context, each with the same SSID, but with different MAC address. I use this to perform different tasks depending on where I am in the building.

The first time I connect, the appropriate profile activates as expected, but roaming to a different MAC address doesn't activate the appropriate profile until I turn the screen on. To the best of my knowledge, this is a new issue since updating to the beta. I'm aware of the settings for display off monitoring (currently 600 seconds) and display on monitoring (currently 120 seconds), and these settings haven't changed in years.

Anyone else seeing similar behavior?

Device: Samsung Galaxy S23 Ultra

Android version: 16 (One UI 8.5)

Tasker version: 6.7.5-beta

reddit.com
u/UnkleMike — 2 months ago
▲ 1 r/tasker

AutoNotification - delayed intercept

I've been having a problem with a profile that uses the AutoNotification Intercept context where the intercept occurs minutes after the notification is created. The profile I'm focused on intercepts notifications from Google Messages, but it may be happening with other profiles too and I just haven't noticed. For example, I received a message at 10:01pm (according to Google Messages), and Android's native notification history shows the timestamp of the message at 10:01pm. The intercept didn't occur (and the profile didn't activate) until 10:07:40pm.

In a separate notification logging profile I record the difference between %TIMEMS and %anwhentime, and the difference in this case was 363315 milliseconds (over 6 minutes).

AutoNotification and Tasker are both set to unrestricted under settings > apps > [app] > battery.

Tasker version: 6.7.5-beta
AutoNotification verion: 4.3.14
Device: Samsung Galaxy S23 Ultra
Android version: 16 (One UI 8.5, security patch level: May 5, 2026)

Any suggestions on how I can troubleshoot this?

reddit.com
u/UnkleMike — 2 months ago
▲ 3 r/tasker

Viewing the run log

When I review the run log, I'm often doing so an hour or more after the time period I'm trying to view, and Tasker becomes sluggish, and ultimately unresponsive while scrolling and filtering the log.

I'd love to find a file viewer that can search, and filter the log using regular expressions.

What, besides Tasker, are you using to examine the run log?

reddit.com
u/UnkleMike — 2 months ago
▲ 3 r/tasker

Scenes v2 - update scene v2 not working

While I have the direct-purchase beta 6.7.4 I decided to check out scenes v2. I'm having trouble getting a component to move. My scene consists of a single column with a single text component, with the column's horizontalAlignment set to Center, and the verticalArrangement also set to Center. Changing the horizontalAlignment to Left using Update Scene V2 doesn't change the position of the text within the column, even though I confirm the new value with Get Scene V2 Values.

Is there something I'm missing? Is this functionality in the beta not complete?

reddit.com
u/UnkleMike — 2 months ago
▲ 1 r/tasker

Joined Patreon for direct-purchase version, but not really interested in running a beta

I feel like I'm overlooking something obvious, but after joining Patreon and downloading the direct-purchase version, I'm not really interested in running a beta. Is there a link that always points to the latest direct-purchase non-beta?

reddit.com
u/UnkleMike — 2 months ago

Twice in the past 8 days Google Messages has notified me a second time for a single message I received and read hours earlier. In both cases, the duplicate notification arrived at 5:37am the day after the message was originally received and read. Since I'm using Tasker and the AutoNotification plugin, I've been keeping logs of notifications, and in each instance the duplicate notification had the same timestamp as the original notification, even though it appeared 7-12 hours later.

Carrier & Country: AT&T and USA

Device & Model: Samsung Galaxy S23 Ultra

Google Messages version: messages.android_20260417_00_RC05.phone_samsung_dynamic

While getting the app version for this post, I discovered that the app last updated at 5:37am - the exact time of the most recent duplicate notification. It's possible that the first instance of this issue coincided with an app update too, but I now have no way to verify that. That said, according to uptodown.com, there was an app update on April 25, 2026 - the date of the first instance of a duplicated notification.

Is it possible that this issue is connected to the app itself being updated?

reddit.com
u/UnkleMike — 4 months ago
▲ 3 r/tasker

I'm using the Array Compare function for the first time, and discovering that it seems to not distinguish between having duplicate elements across multiple arrays and having duplicate elements within the same array. This can be demonstrated with the following task:

    Task: Array Compare Test
    
    A1: Array Set [
         Variable Array: %first_group
         Values: A,B,C,D,E
         Splitter: , ]
    
    A2: Array Set [
         Variable Array: %second_group
         Values: C,D,E,F,G,F
         Splitter: , ]
    
    A3: Array Compare [
         Names: %first_group
         %second_group ]
    
    A4: Flash [
         Text: %ac_common(#): %ac_common()
         Tasker Layout: On
         Continue Task Immediately: On
         Dismiss On Click: On ]

In this example, the Flash action displays 4: C,D,E,F instead of the expected (by me) 3: C,D,E.

Obviously this can be worked around by using the Array Process action to remove duplicates, followed another Array Process action to squash the array, and doing this for each array. For my use case, modifying the arrays is not an issue, but it seems inefficient, and like it shouldn't be necessary. Is what I'm seeing the expected behavior or a bug?

reddit.com
u/UnkleMike — 4 months ago
▲ 3 r/tasker

I'm still futzing with my Notification Reminder project, and avoiding using JavaScript because even though AI could generate the code for me, I wouldn't necessarily understand it or be able to tweak it in the future. Besides that, creating something myself is half the fun (benefiting from that creation is the other half).

Anyway, I have a profile that uses AutoNotification to text to notifications from Google Messages. I received a text from in a one-to-one thread last night, got the notification, and read the message. Then, almost exactly 7 hours later I got the same notification. Even the value of `%anwhentime` was the same, corresponding to the time of the original notification. The only variable values that different were the "action" values (i.e. for tap, dismissal, reply). Has anyone ever seen something like like this before?

reddit.com
u/UnkleMike — 4 months ago