I am having trouble crafting a function that has the following requirements in Lua:
- Takes a string
phone_number
and 2-digitcountry_code
as input. phone_number
has the form {1 || ""}{country_code
}{10 or 11-digit mobile number}
I need as output the 10 or 11-digit mobile number.
Example I/O:
phone_number
= "552234332344", country_code
= "55" => "2234332344"
phone_number
= "15522343323443", country_code
= "55" => "22343323443"
Thanks!