Skip to content
DevToolKit

正規表現チートシート

正規表現チートシートを無料で使えるオンラインリファレンスガイドです。検索可能な包括的リファレンスをブラウザ上でいつでも即座に閲覧できます。インクリメンタルサーチやカテゴリ別での絞り込み、セクションへのアンカーリンク共有に対応。PWA対応でオフラインでも閲覧可能な実用的なガイドです。

Search Reference

49 of 49 tokens
.
Any character

Matches any single character except newline (unless s flag is set).

\d
Digit

Matches any digit character (0-9). Equivalent to [0-9].

\D
Non-digit

Matches any character that is not a digit. Equivalent to [^0-9].

\w
Word character

Matches any alphanumeric character plus underscore. Equivalent to [a-zA-Z0-9_].

\W
Non-word character

Matches any character that is not a word character. Equivalent to [^a-zA-Z0-9_].

\s
Whitespace

Matches any whitespace character: space, tab, newline, carriage return, form feed.

\S
Non-whitespace

Matches any character that is not whitespace.

[abc]
Character set

Matches any one of the characters inside the brackets.

[^abc]
Negated set

Matches any character NOT inside the brackets.

[a-z]
Character range

Matches any character in the specified range (inclusive).

[a-zA-Z]
Combined range

Matches any uppercase or lowercase letter using combined ranges.

[0-9a-fA-F]
Hex digit range

Matches hexadecimal characters by combining digit and letter ranges.

^
Start of string

Matches the start of a string (or line in multiline mode).

$
End of string

Matches the end of a string (or line in multiline mode).

\b
Word boundary

Matches the position between a word character and a non-word character.

\B
Non-word boundary

Matches any position that is NOT a word boundary.

*
Zero or more

Matches the preceding element zero or more times (greedy).

+
One or more

Matches the preceding element one or more times (greedy).

?
Zero or one

Matches the preceding element zero or one time (optional).

{n}
Exactly n

Matches the preceding element exactly n times.

{n,}
n or more

Matches the preceding element at least n times (greedy).

{n,m}
Between n and m

Matches the preceding element between n and m times (inclusive, greedy).

*?
Lazy zero or more

Matches zero or more times, but as few as possible (lazy/non-greedy).

+?
Lazy one or more

Matches one or more times, but as few as possible (lazy/non-greedy).

??
Lazy zero or one

Matches zero or one time, preferring zero (lazy/non-greedy).

(abc)
Capturing group

Groups multiple tokens together and captures the matched text for back-referencing.

(?:abc)
Non-capturing group

Groups tokens together without capturing. Useful for applying quantifiers to groups.

(?<name>abc)
Named group

Captures the matched text and assigns it a name for easier reference.

\1
Backreference

Matches the same text as previously captured by the nth capturing group.

(a|b)
Group alternation

Captures one alternative from inside a group. Combines grouping with alternation.

|
Alternation (OR)

Matches the expression before or after the pipe. Acts as a boolean OR.

\\
Escaped backslash

Matches a literal backslash character.

\n
Newline

Matches a line feed character (LF, U+000A).

\t
Tab

Matches a horizontal tab character (U+0009).

\r
Carriage return

Matches a carriage return character (CR, U+000D).

\.
Escaped dot

Matches a literal period/dot character.

\^
Escaped caret

Matches a literal caret character.

\$
Escaped dollar

Matches a literal dollar sign character.

\(
Escaped parenthesis

Matches a literal opening parenthesis.

g
Global

Find all matches rather than stopping after the first match.

i
Case-insensitive

Makes the entire pattern case-insensitive.

m
Multiline

Makes ^ and $ match the start/end of each line rather than the whole string.

s
Dotall (single-line)

Makes the dot (.) match newline characters as well.

u
Unicode

Enables full Unicode matching. Required for proper emoji and surrogate pair handling.

y
Sticky

Matches only at the index indicated by the lastIndex property. Does not search forward.

(?=abc)
Positive lookahead

Asserts that what follows the current position matches the pattern, without consuming characters.

(?!abc)
Negative lookahead

Asserts that what follows the current position does NOT match the pattern.

(?<=abc)
Positive lookbehind

Asserts that what precedes the current position matches the pattern, without consuming characters.

(?<!abc)
Negative lookbehind

Asserts that what precedes the current position does NOT match the pattern.

Live Sandbox

//g
Flags
No matches found

Common Patterns

Was this tool helpful?

使い方

正規表現チートシートの使い方をステップごとにご紹介します。

  1. 入力データを準備:処理したいデータをテキストエリアに入力するか、ファイルをドロップゾーンにアップロードします。対応形式のデータが自動認識されます:入力データを準備:処理したいデータをテキストエリアに入力するか、ファイルをドロップゾーンにアップロードします。対応形式のデータが自動認識されます
  2. 設定をカスタマイズ:オプションパネルで処理内容やパラメータを目的に合わせて調整します。プリセット設定も利用可能です:設定をカスタマイズ:オプションパネルで処理内容やパラメータを目的に合わせて調整します。プリセット設定も利用可能です
  3. 処理を実行:設定を確認して実行ボタンをクリックします。処理の進捗がリアルタイムで表示され、完了までの推定時間も確認できます:処理を実行:設定を確認して実行ボタンをクリックします。処理の進捗がリアルタイムで表示され、完了までの推定時間も確認できます
  4. 結果を確認・保存:処理結果をプレビューで確認し、クリップボードへのコピーまたはファイルダウンロードで保存します:結果を確認・保存:処理結果をプレビューで確認し、クリップボードへのコピーまたはファイルダウンロードで保存します

直感的なインターフェースにより、専門知識がなくても誰でもすぐに使い始めることができます。定期的な作業の効率化にお役立てください。

このツールについて

正規表現チートシートは、リファレンスカテゴリに属する専門的なオンラインツールです。直感的なインターフェースで高度な処理を簡単に実行でき、結果を即座に確認・活用できます。

内部的には最新のWeb技術を活用した高性能な処理エンジンを搭載しており、大容量のデータでも高速に処理できます。入力データのバリデーション、エラーハンドリング、プログレス表示など、ユーザー体験を重視した設計になっています。

すべての処理がデバイス上で完結するため、入力データが外部に送信されることはありません。プライバシーを重視するユーザーにも安心してご利用いただけます。初心者からプロフェッショナルまで、幅広いユーザーのニーズに対応します。

このツールを使う理由

正規表現チートシートを活用すべき理由をご紹介します。

  • 効率的な処理:手作業では時間がかかる処理を自動化し、数クリックで完了します。日常的な作業時間を大幅に短縮できます:効率的な処理:手作業では時間がかかる処理を自動化し、数クリックで完了します。日常的な作業時間を大幅に短縮できます
  • 正確な結果:最適化されたアルゴリズムにより、一貫して正確な処理結果を提供します。人的ミスのリスクを排除します:正確な結果:最適化されたアルゴリズムにより、一貫して正確な処理結果を提供します。人的ミスのリスクを排除します
  • カスタマイズ性:豊富なオプション設定により、さまざまなユースケースと要件に対応します。プリセットと詳細設定の両方を提供しています:カスタマイズ性:豊富なオプション設定により、さまざまなユースケースと要件に対応します。プリセットと詳細設定の両方を提供しています
  • 安全な処理:すべてのデータがデバイス上で処理され、外部サーバーに送信されることはありません:安全な処理:すべてのデータがデバイス上で処理され、外部サーバーに送信されることはありません
  • 即座の利用開始:インストール不要で、ブラウザを開くだけですぐに使い始めることができます。アカウント登録も不要です:即座の利用開始:インストール不要で、ブラウザを開くだけですぐに使い始めることができます。アカウント登録も不要です

よくある質問

正規表現チートシートの出力カスタマイズは可能ですか?
はい。正規表現チートシート(regex cheatsheet)では出力形式やフォーマット設定をカスタマイズできます。正規表現チートシートで変更した設定は即座にプレビューに反映され、目的に合った出力が得られるまで調整できます。
正規表現チートシートはモバイルでも使用できますか?
はい。正規表現チートシートはレスポンシブデザインによりスマートフォンやタブレットでも快適に操作できます。正規表現チートシート(regex cheatsheet)はタッチ操作に最適化され、外出先からでもフル機能を利用可能です。
正規表現チートシートの主な機能は何ですか?
正規表現チートシート(regex cheatsheet)は入力データに対して専門的な処理を実行し結果を分かりやすく表示するツールです。正規表現チートシートの直感的なインターフェースで複雑な操作をシンプルに行えます。
正規表現チートシートの入力データサイズに制限はありますか?
正規表現チートシートの技術的上限はデバイスのメモリに依存しますが、通常の使用範囲では制限を意識する必要はありません。正規表現チートシートでは数十MBのファイルでも処理可能です。
正規表現チートシートの入力形式に制限はありますか?
正規表現チートシートでは対応する形式のデータを入力エリアに貼り付けるかファイルとしてアップロードできます。正規表現チートシートで不正な形式の入力に対しては具体的なエラーメッセージが表示されます。