正規表現チートシート
文字クラス、量指定子、アンカー、グループ、先読み/後読み、エスケープをまとめた正規表現の早見表です。
使い方
Using the cheat sheet
Search for a token or a description to filter the table, then use the pattern directly in JavaScript, Python or any engine that follows the common syntax.
- Search for a pattern or keyword.
- Read the description.
- Copy the token into your expression.
よくある質問
Which regex flavour is this?
The common Perl-compatible subset supported by JavaScript, Python, Java and most other engines.
Does the dot match newlines?
By default it does not. Enable the s (dotAll) flag in JavaScript or re.DOTALL in Python if you need it to.
関連ツール
正規表現テスター
サンプルテキストに対して正規表現をテストし、すべてのマッチとキャプチャグループを確認します。
文字数・単語数カウンター
文字、単語、行、文、段落を数え、読了時間とUTF-8サイズも表示します。
UUID / GUID ジェネレーター
ランダムなバージョン4 UUID を生成し、1つずつまたはまとめてコピーします。
ハッシュジェネレーター
任意のテキストの MD5、SHA-1、SHA-256、SHA-512 ダイジェストを計算します。
タイムスタンプ変換
Unix タイムスタンプ、ISO 8601、人間が読める現地日時の間で変換します。
テキスト比較 / Diff
2つのテキストを比較し、行単位の追加・削除・変更を表示します。