PDFのミカタ

郵便番号や電話番号を見つける正規表現

公開日:2026年10月19日|最終更新:2026年10月19日|運営者情報

この記事のポイント
  • パターンを書く
  • 文章を入れる
  • 件数を見る

正規表現テスター に「\d{3}-\d{4}」と入れると、郵便番号の形を探せます。

手順

  1. パターンを書く
  2. 文章を入れる
  3. 件数を見る
「\d」は数字1文字、「{3}」は3回の繰り返しです。
正規表現テスターを使う(無料)

あわせて使えるツール

この解説が役に立ったら、応援してもらえるとうれしいです。

応援する(300円)ほしい物リストで応援

同じツールの、ほかの解説

解説の一覧を見る

Regex for Postal and Phone Numbers

Published: Oct 19, 2026 | Updated: Oct 19, 2026 | About (Japanese)

Key points
  • Write a pattern
  • Enter the text
  • Check the count

Entering "\d{3}-\d{4}" in Regex Tester finds the shape of a postal code.

Steps

  1. Write a pattern
  2. Enter the text
  3. Check the count
"\d" is one digit and "{3}" means three times.
Use "Regex Tester" (free)

Tools that go well with this

If this guide helped, a small tip would mean a lot.

Send a tip (¥300)Send a gift (Amazon wishlist)

More guides for this tool

See all guides