[{"data":1,"prerenderedAt":531,"buildId":532},["ShallowReactive",2],{"docs-navigation-en":3,"examples-en":30,"page-\u002Fdocs\u002Finput-rules":131,"surround-\u002Fdocs\u002Finput-rules":526},[4],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Docs","\u002Fdocs","docs",[9,13,17,21,25],{"title":10,"path":11,"stem":12},"Getting started","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",{"title":14,"path":15,"stem":16},"In the browser and with frameworks","\u002Fdocs\u002Fin-the-browser","docs\u002F2.in-the-browser",{"title":18,"path":19,"stem":20},"Input rules","\u002Fdocs\u002Finput-rules","docs\u002F3.input-rules",{"title":22,"path":23,"stem":24},"Compared with libphonenumber","\u002Fdocs\u002Flibphonenumber","docs\u002F4.libphonenumber",{"title":26,"path":27,"stem":28},"Data and sources","\u002Fdocs\u002Fdata-and-sources","docs\u002F5.data-and-sources",false,[31,40,47,55,63,71,77,84,92,98,104,110,117,125],{"path":32,"title":33,"description":34,"category":35,"order":36,"uses":37,"demo":39},"\u002Fexamples\u002Fvalidate-input","Validate a phone number field","Accept full-width input, reject numbers that do not exist, and save one notation.","forms",1,[38],"normalize","validate-input",{"path":41,"title":42,"description":43,"category":35,"order":44,"uses":45,"demo":46},"\u002Fexamples\u002Fpaste-labels","Accept pasted labels and notes","Take the main number from lines like ",2,[38],"paste-labels",{"path":48,"title":49,"description":50,"category":35,"order":51,"uses":52,"demo":54},"\u002Fexamples\u002Fmobile-only","Accept mobile numbers only","Use the type to decide whether a number can receive SMS.",3,[38,53],"type","mobile-only",{"path":56,"title":57,"description":58,"category":35,"order":59,"uses":60,"demo":62},"\u002Fexamples\u002Ftel-link","Make tel: links","Link numbers in their international form, and keep domestic-only numbers dialable.",4,[38,61],"international","tel-link",{"path":64,"title":65,"description":66,"category":67,"order":36,"uses":68,"demo":70},"\u002Fexamples\u002Fextract-inquiry","Find numbers in a message","Pick every phone number out of a message, in the order it appears.","text",[69],"extract","extract-inquiry",{"path":72,"title":73,"description":74,"category":67,"order":44,"uses":75,"demo":76},"\u002Fexamples\u002Fbusiness-card","Read a business card in kanji digits","Find numbers written with 〇一二三, as on vertical business cards.",[69],"business-card",{"path":78,"title":79,"description":80,"category":67,"order":51,"uses":81,"demo":83},"\u002Fexamples\u002Fcompany-page","List the numbers on a company page","Find TEL and FAX numbers and drop duplicates written in other notations.",[69,82],"digits","company-page",{"path":85,"title":86,"description":87,"category":88,"order":36,"uses":89,"demo":91},"\u002Fexamples\u002Fdisplay-format","Store digits, show hyphens","Format stored digits with the groups from the numbering table.","data",[38,90],"national","display-format",{"path":93,"title":94,"description":95,"category":88,"order":44,"uses":96,"demo":97},"\u002Fexamples\u002Fdedupe","Find duplicates written differently","Group entries that are the same number in different notations.",[38],"dedupe",{"path":99,"title":100,"description":101,"category":88,"order":51,"uses":102,"demo":103},"\u002Fexamples\u002Fcsv-cleanup","Clean a CSV column","Rewrite a phone column in one notation and flag rows that need a person.",[38],"csv-cleanup",{"path":105,"title":106,"description":107,"category":88,"order":59,"uses":108,"demo":109},"\u002Fexamples\u002Ftype-stats","Count numbers by type","See how many entries are mobile, fixed-line, toll-free, or invalid.",[38,53],"type-stats",{"path":111,"title":112,"description":113,"category":88,"order":114,"uses":115,"demo":116},"\u002Fexamples\u002Fe164","Convert to E.164","Pass numbers to SMS gateways, CRMs, and libphonenumber in international form.",5,[38,61],"e164",{"path":118,"title":119,"description":120,"category":121,"order":36,"uses":122,"demo":124},"\u002Fexamples\u002Fplan-check","Reject numbers that cannot exist","Numbers missing from the numbering plan or the MIC tables are invalid.","rules",[123],"isValid","plan-check",{"path":126,"title":127,"description":128,"category":121,"order":44,"uses":129,"demo":130},"\u002Fexamples\u002Finternational-input","Read numbers written for abroad","Accept +81 notation, including the bracketed (0), for the types that can be dialed from abroad.",[38],"international-input",{"id":132,"title":18,"body":133,"description":520,"extension":521,"meta":522,"navigation":523,"path":19,"seo":524,"stem":20,"__hash__":525},"docs_en\u002Fdocs\u002F3.input-rules.md",{"type":134,"value":135,"toc":514},"minimark",[136,141,264,276,279,281,286,361,364,400,402,407],[137,138,140],"h2",{"id":139},"supported-numbers","Supported numbers",[142,143,144,163],"table",{},[145,146,147],"thead",{},[148,149,150,154,157,160],"tr",{},[151,152,153],"th",{},"Type",[151,155,156],{},"Numbers",[151,158,159],{},"Notation",[151,161,162],{},"International",[164,165,166,191,208,225,247],"tbody",{},[148,167,168,175,178,188],{},[169,170,171],"td",{},[172,173,174],"code",{},"fixed_line",[169,176,177],{},"Area code + local exchange, 10 digits",[169,179,180,181,184,185],{},"From the MIC tables, such as ",[172,182,183],{},"03-5253-8111"," or ",[172,186,187],{},"04998-2-3111",[169,189,190],{},"Yes",[148,192,193,198,201,206],{},[169,194,195],{},[172,196,197],{},"mobile",[169,199,200],{},"060, 070, 080, 090, 11 digits",[169,202,203],{},[172,204,205],{},"090-1234-5678",[169,207,190],{},[148,209,210,215,218,223],{},[169,211,212],{},[172,213,214],{},"ip_phone",[169,216,217],{},"050, 11 digits",[169,219,220],{},[172,221,222],{},"050-1234-5678",[169,224,190],{},[148,226,227,232,235,244],{},[169,228,229],{},[172,230,231],{},"toll_free",[169,233,234],{},"0120 (10 digits), 0800 (11 digits)",[169,236,237,240,241],{},[172,238,239],{},"0120-123-456",", ",[172,242,243],{},"0800-123-4567",[169,245,246],{},"No",[148,248,249,254,257,262],{},[169,250,251],{},[172,252,253],{},"unified_number",[169,255,256],{},"0570, 10 digits",[169,258,259],{},[172,260,261],{},"0570-123-456",[169,263,246],{},[265,266,267,268,271,272,275],"p",{},"Fixed-line hyphens come from the MIC tables, not from the brackets in the input, so ",[172,269,270],{},"0922（12）1234"," becomes ",[172,273,274],{},"092-212-1234",". Blocks marked unused in the tables are accepted.",[265,277,278],{},"Not supported: 020 (data transmission mobile), 0990, short codes such as 110, and numbers from other countries.",[137,280,38],{"id":38},[265,282,283,285],{},[172,284,38],{}," takes one value. It accepts:",[287,288,289,297,316,330],"ul",{},[290,291,292,293,296],"li",{},"half-width and full-width digits, and the single-digit kanji ",[172,294,295],{},"〇一二三四五六七八九",";",[290,298,299,300,240,303,240,306,240,309,240,312,315],{},"half-width and full-width spaces, hyphens (",[172,301,302],{},"-",[172,304,305],{},"－",[172,307,308],{},"‐",[172,310,311],{},"‑",[172,313,314],{},"−","), and brackets around the local exchange or the whole number;",[290,317,318,321,322,325,326,329],{},[172,319,320],{},"+81",", including the bracketed domestic ",[172,323,324],{},"0"," in ",[172,327,328],{},"+81-(0)50-3818-1250",", for fixed-line, mobile, and 050;",[290,331,332,333,240,336,240,339,342,343,346,347,240,350,240,353,356,357,360],{},"a leading ",[172,334,335],{},"TEL:",[172,337,338],{},"FAX:",[172,340,341],{},"電話:",", or ",[172,344,345],{},"電話番号:",", and a trailing ",[172,348,349],{},"（代表）",[172,351,352],{},"（代）",[172,354,355],{},"（直通）",", or extension written with ",[172,358,359],{},"内線",".",[265,362,363],{},"It rejects, on purpose:",[287,365,366,373,379,382,385,397],{},[290,367,368,369,372],{},"broken separators such as ",[172,370,371],{},"090--1234-5678"," or an unclosed bracket;",[290,374,375,376,296],{},"letters mixed into digits, such as ",[172,377,378],{},"090-ABCD-5678",[290,380,381],{},"line breaks or tabs, more than one number, or other words around the number;",[290,383,384],{},"values longer than 128 characters;",[290,386,387,390,391,184,394,296],{},[172,388,389],{},"+810…"," without brackets, and kanji with place values such as ",[172,392,393],{},"十",[172,395,396],{},"零",[290,398,399],{},"numbers without an area code. japan-phone never guesses one.",[137,401,69],{"id":69},[265,403,404,406],{},[172,405,69],{}," takes text of any length and returns the numbers it finds, in order.",[287,408,409,412,419,425,432,448,460,511],{},[290,410,411],{},"Any text may surround a number, including line breaks.",[290,413,414,415,418],{},"It joins digit groups separated by up to three half-width or full-width spaces, hyphens (including ",[172,416,417],{},"ー"," and dashes), brackets, or periods.",[290,420,421,422,424],{},"Each candidate is validated as strictly as by ",[172,423,38],{},". Digit strings that do not fit the numbering plan or the MIC tables are skipped.",[290,426,427,428,431],{},"It never cuts a number out of a longer run of digits. Digits of other scripts, such as Arabic-Indic, count as part of the run (for example, nothing is found in ",[172,429,430],{},"١09012345678","). The digits are fixed to the decimal digits of Unicode 18.0, so they do not change with the Unicode version of the runtime.",[290,433,434,435,184,438,441,442,271,445,447],{},"It ignores where the separators fall. Misgrouped numbers such as ",[172,436,437],{},"0120-12-3456",[172,439,440],{},"0922-12-1234"," are returned with the correct grouping. As a result, other digit strings of the same length, such as part numbers, are picked up when they happen to fall in a valid block (for example, ",[172,443,444],{},"0352-538-111",[172,446,183],{},").",[290,449,450,452,453,456,457,459],{},[172,451,320],{}," is read for fixed-line, mobile, and 050 numbers, including ",[172,454,455],{},"+81-0-90-1234-5678"," with the domestic ",[172,458,324],{}," written as its own group.",[290,461,462,463,466,467,469,470,184,473,476,477,479,480,240,483,486,487,490,491,493,494,184,497,500,501,503,504,507,508,510],{},"Digits after a ",[172,464,465],{},"+"," other than ",[172,468,320],{},", such as ",[172,471,472],{},"+1",[172,474,475],{},"+999",", are treated as a foreign number and skipped with the digits joined to them, also with up to three separators between the ",[172,478,465],{}," and the digits (",[172,481,482],{},"+ 1",[172,484,485],{},"＋（1）","). ",[172,488,489],{},"+1 090-1234-5678"," never yields a Japanese number. As a result, a number after a decorative or arithmetic ",[172,492,465],{},", as in ",[172,495,496],{},"1+1 090-1234-5678",[172,498,499],{},"基本料金 + 090-1234-5678",", is not found either. When four or more characters, or a character that is not a separator, come between the ",[172,502,465],{}," and the digits (as in ",[172,505,506],{},"+ (要予約) 090-1234-5678","), the ",[172,509,465],{}," does not count and the number is found.",[290,512,513],{},"The same number written twice is returned twice.",{"title":515,"searchDepth":44,"depth":44,"links":516},"",[517,518,519],{"id":139,"depth":44,"text":140},{"id":38,"depth":44,"text":38},{"id":69,"depth":44,"text":69},"What normalize and extract accept, and what they reject on purpose.","md",{},true,{"title":18,"description":520},"IUUC-myyJo1M-SIynhfSuMvKWe0JAY4tFm3TebXHdcs",[527,529],{"title":14,"path":15,"stem":16,"description":528,"children":-1},"The npm package runs unchanged in the browser. Examples for an input field in Vue and React.",{"title":22,"path":23,"stem":24,"description":530,"children":-1},"Where japan-phone and Google's libphonenumber agree, where they differ, and how to use both.",1796483608313,"73e0e014-4aa7-4f04-8db5-5f7391793162"]