Remove Country Code from Phone Numbers and Encode Special Characters

Remove Country Code from Phone Numbers and Encode Special Characters SearchSearch
Author Message
Steven McNeese
New member
Username: Smcneese

Post Number: 8
Registered: 03-2018
Posted on Wednesday, March 14, 2018 - 08:48 pm:   

So I am using the 2-Way keyword processor to return a message that includes a URL with a query string parameter for the original message sender's number using the @@SENDER@@. The response uses a Local Command to reply to the sender and I am using the cmd.exe /c echo command.

c:\windows\system32\cmd.exe /c echo Thanks for texting! Click this link to register & receive PROMO CODE FOR 25% YOUR FIRST AIRPORT VALET PARKING EXPERIENCE: http://www.freedomparkphxvalet.com/park25?mobile=@@SENDER@@


So the @@SENDER@@ is being replaced by the number of the person that sent the text messages but it includes the country code 1. I just need it to include the area code and number. Example: 9998889999 instead of 19998889999.

Also, the text includes a & that needs to be encoded. I tried replacing it with %26 and it just passed %26 along as text.