Split Variable numbers and letters

Skip to first unread message

John Duckworth

Dec 5, 2021, 5:27:37 PM12/5/21
to Tasker
If I have a variable with numbers and letters, say 5C or 17C, with no space between the 5 and C, can I split the letters and numbers to get
Numbers.....5 (or 17)

João Dias

Dec 6, 2021, 8:17:35 AM12/6/21
to johnb...@gmail.com, Tasker
Hi! Check this example:

    Task: Test
    A1: Simple Match/Regex [
         Type: Simple
         Text: 15C
         Match Pattern: #number$letter ]
    A2: Flash [
         Text: %number
         Hide On Click: On ]

Hope this helps! 

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins


João Dias

Reply all
Reply to author
0 new messages