text from numbers with > 5 digits

22 views
Skip to first unread message

droopie

unread,
Oct 21, 2013, 9:13:21 PM10/21/13
to tas...@googlegroups.com
just an example, how could i do a IF statement that says IF Text From has 6 or more digits? not sure if  IF %SMSRF ~R /d/d/d/d/d/d  will work. the reason for this is because i have read sms from name but since i sometimes get 3-5 digit numbers, i rather it not say those numbers. also, to reply to incoming sms, i also would like to apply this so it ignores these numbers. dont know if regex is the best way to go about it.

Bob Hansen

unread,
Oct 21, 2013, 9:23:31 PM10/21/13
to tas...@googlegroups.com
Assuming that there are no - or () characters, then the easiest way to determine if a number has more than 6 digits is with:
If %SMSRF > 99999 

droopie

unread,
Oct 21, 2013, 9:38:14 PM10/21/13
to tas...@googlegroups.com
hmm. i know the default carrier numbers are 3 digit without any symbols so are those alerts with 5 digits. i dont want it to effect actual 7+ digit texts which i believe, atleast for me on t-mobile, have a + before the numbers. thats usually default if i dont manually enter the numbers myself to my contacts.

Mike L

unread,
Oct 21, 2013, 9:38:48 PM10/21/13
to tas...@googlegroups.com
Bob's way would work if all zeros would never happen. \d{6, } should work as well
Reply all
Reply to author
Forward
0 new messages