I am trying to figure out how can I validate an alphanumeric sender id for sending SMS via Twilio? I tried sending SMS with only numeric sender(not Twilio verified number, a random numeric sender id) and Twilio accepted that message. So I am not sure what exactly Twilio support in alphanumeric sender Id.
It would be helpful if Twilio API provides some Regular Expression for pattern matching or I could validate sender using api ?
Any help in this regard would be highly appreciated.
You may use any combination of 1 to 11 letters, A-Z and numbers, 0-9.
Both lowercase and uppercase characters are supported as well as
spaces. 1 letter and no more than 11 alphanumeric characters may be
A regular expression for this will vary depending on the programming language you're using, and in many cases you will find the language will have helpers for those things.