{"id":210,"date":"2015-09-30T21:48:53","date_gmt":"2015-10-01T02:48:53","guid":{"rendered":"http:\/\/www.integrityautomatedsystems.com\/blog\/?p=210"},"modified":"2023-03-31T22:35:31","modified_gmt":"2023-03-31T22:35:31","slug":"formatting-phone-numbers-followup","status":"publish","type":"post","link":"http:\/\/integrityautomatedsystems.com\/index.php\/2015\/09\/formatting-phone-numbers-followup\/","title":{"rendered":"Formatting Phone Numbers &#8211; followup"},"content":{"rendered":"<p>The code which I originally put together on <a href=\"http:\/\/www.integrityautomatedsystems.com\/blog\/index.php\/2015\/09\/formatting-phone-numbers\/\">my previous blog entry<\/a> was US centric&#8230;I have adjusted it to make it more flexible, and to be able to handle more countries.<\/p>\n<p>The parameters have changed.  1) End users input 2) expected number of digits (after removing all other formatting) 3) Description of the target format (&amp; denotes a substitution at that position.  The single digit following an &amp; denotes how many numbers to use from the phone number in that spot.<\/p>\n<p>The full code can be downloaded from <a href=\"http:\/\/www.integrityautomatedsystems.com\/blog\/wp-content\/uploads\/2015\/09\/Formatting_Phone_Numbers2.txt\">here<\/a><\/p>\n<p>Calling the routine<br \/>\n<a href=\"http:\/\/www.integrityautomatedsystems.com\/blog\/wp-content\/uploads\/2015\/09\/image_2015_09_30a.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-212\" src=\"http:\/\/www.integrityautomatedsystems.com\/blog\/wp-content\/uploads\/2015\/09\/image_2015_09_30a.png\" alt=\"image_2015_09_30a\" width=\"844\" height=\"281\" srcset=\"http:\/\/integrityautomatedsystems.com\/wp-content\/uploads\/2015\/09\/image_2015_09_30a.png 844w, http:\/\/integrityautomatedsystems.com\/wp-content\/uploads\/2015\/09\/image_2015_09_30a-300x100.png 300w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/a><\/p>\n<p>Here is the code<br \/>\n<a href=\"http:\/\/www.integrityautomatedsystems.com\/blog\/wp-content\/uploads\/2015\/09\/image_2015_09_30b.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-213\" src=\"http:\/\/www.integrityautomatedsystems.com\/blog\/wp-content\/uploads\/2015\/09\/image_2015_09_30b.png\" alt=\"image_2015_09_30b\" width=\"951\" height=\"1393\" srcset=\"http:\/\/integrityautomatedsystems.com\/wp-content\/uploads\/2015\/09\/image_2015_09_30b.png 951w, http:\/\/integrityautomatedsystems.com\/wp-content\/uploads\/2015\/09\/image_2015_09_30b-205x300.png 205w, http:\/\/integrityautomatedsystems.com\/wp-content\/uploads\/2015\/09\/image_2015_09_30b-699x1024.png 699w\" sizes=\"auto, (max-width: 951px) 100vw, 951px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The code which I originally put together on my previous blog entry was US centric&#8230;I have adjusted it to make it more flexible, and to be able to handle more countries. The parameters have changed. 1) End users input 2) expected number of digits (after removing all other formatting) 3) Description of the target format &hellip; <a href=\"http:\/\/integrityautomatedsystems.com\/index.php\/2015\/09\/formatting-phone-numbers-followup\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Formatting Phone Numbers &#8211; followup<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/comments?post=210"}],"version-history":[{"count":4,"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":226,"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/posts\/210\/revisions\/226"}],"wp:attachment":[{"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/media?parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/categories?post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/integrityautomatedsystems.com\/index.php\/wp-json\/wp\/v2\/tags?post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}