regexp not matching beginning of the line

53 views
Skip to first unread message

Andrea Grassi

unread,
Feb 16, 2026, 8:25:09 AMFeb 16
to Tasker
I am writing a task that get input from a share ( the %rs_text variable ) and parses it to create a https://wa.me/mobile_number url that I can pass to whatsapp, without having to add it to my contacts

I am using a dummy task that set the variable and process it.

it's tel:0039italian_mobile_number
If I put tel: in search it strips it.

If I put ^tel: instead it does not matches.

Same if in the following step I put ^00 .

I'm missing something really simple here?


SDS

unread,
Feb 17, 2026, 12:22:46 AMFeb 17
to Tasker
Use variable split: 
splitter: tel: 

Andrea Grassi

unread,
Feb 23, 2026, 2:15:22 AMFeb 23
to Tasker
This is not possible, the tel: string is not always present

SDS

unread,
Feb 23, 2026, 5:32:39 AMFeb 23
to Tasker
suppose    %rs_text variable  is  *0039italian_mobile_number*, then use:
action 1: variable split , splitter:  0039 
action 2:  variable section, variable: %rs_text variable2 from 1 to n, n is the number of digits after 0039 . store result in: %phonenumber
or, if you know the character after the phone number, the action 2 can be replaced by another variable split with the character as splitter. 

Andrea Grassi

unread,
Mar 11, 2026, 3:37:27 AM (23 hours ago) Mar 11
to Tasker
not sure if the international prefix is always present, but I didn't consider a multi char split. 
thanks!
Reply all
Reply to author
Forward
0 new messages