Skip to main content
Regexflux

Japanese Phone Number

beginner

Matches Japanese phone numbers in common formats.

phonejapanvalidation

Pattern

/(?:\+81[\s-]?|0)\d{1,4}[\s-]?\d{1,4}[\s-]?\d{4}/g

Try It

0 of 6 strings matched

Explanation

Matches Japanese phone numbers starting with +81 or 0, followed by area code and subscriber number groups separated by optional hyphens or spaces.

Test Strings

Matching

  • 03-1234-5678
  • +81 3-1234-5678
  • 090-1234-5678

Non-matching

  • 123-456
  • +1-555-1234
  • abc

Language Compatibility

LanguageSupport
JSFull support
PYTHONFull support
JAVAFull support
PHPFull support
GOFull support

Code Snippets

const regex = /(?:\+81[\s-]?|0)\d{1,4}[\s-]?\d{1,4}[\s-]?\d{4}/g;
const text = "your text here";
const matches = text.match(regex);
console.log(matches);

Related Patterns