QnaList > Groups > Tasker > Mar 2016
faq

How To Get The Last 6 Digits Of A Phone Number?

Hi everyone!
I'm working on my super killer tasker app that will let me have the phone 
that they can text SOS back to me to turn up my phone volume and ring again.
So far so good... until i wanted to add in a filter to only accept the SOS 
text from the person who called. This is where i have a problem!
For some idiotic reason, the callers phone number starts with 07 (UK 
mobiles all do). SMS messages however all start with +447 instead it seems 
and this means i cannot compare the sender of the text to the last caller.
So what I'd like to do is grab the last six digits of the caller into a 
variable and then when the SOS text comes in, check to see if those last 
six digits are in the senders phone number. I've looked at variable section 
but that works from the beginning of a string / variable not from the end.
Any ideas?
Thanks
Jay
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

asked Mar 23 2016 at 12:30

Jay Dee 's gravatar image



1 Replies for : How To Get The Last 6 Digits Of A Phone Number?
Last6 (515)
 A1: Variable Set [ Name:%test To:123456789 Do Maths:Off Append:Off ] 
 A2: Test Variable [ Type:Length Data:%test Store Result In:%len ] 
 A3: Variable Section [ Name:%test From:%len-5 Length:6 Adapt To Fit:Off 
Store Result In:%last6 ] 
 A4: Flash [ Text:Original = %test
Last 6 = %last6 Long:On ] 
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

answered Mar 23 2016 at 13:14

easiuser 's gravatar image


Related discussions

Tagged

Group Tasker

asked Mar 23 2016 at 12:30

active Mar 23 2016 at 13:14

posts:2

users:2

Tasker

©2013 QnaList.com . QnaList is part of ZisaTechnologies LLC.