a11y.skipToMainContent
1

SQL Regex テスター

SQL REGEXP パターンを異なるデータベースのダイアレクト間でサンプルデータに対してテストします。 それぞれの文字が異なるパターンを解釈する方法を参照してください.

SQL Regex Tester
Test Strings (one per line)
More options
Was this tool helpful?
Send output to:
Advertisement

How to use SQL Regex Tester

  1. REGEXP パターンを入力してください.
  2. テスト文字列(1行につき1つ)を追加します.
  3. 各SQLダイアレクトのマッチを表示します.
  4. データベース間での動作の違いを比較します.

SQL Regex テスターとは?

SQL regex テスターでは、異なる SQL データベースで動作するように正規表現パターンをテストすることができます。 各データベースエンジン(MySQL、PostgreSQL、SQLite、MSSQL)は、少し異なる正規表現の構文と振る舞いを持っています。

このツールは、パターンがすべての4つの大文字を同時に実行する方法を示しています。マッチング動作の違いを強調します。 クロス・データ・ベース・互換のクエリを書くことは有利です。

Advertisement

FAQ

データベース間で結果が異なるのはなぜですか?
各データベースは、異なる構文で異なる正規表現エンジンを使用します。 たとえば、PostgreSQL は POSIX regex を使用するときに、MySQL は Henry Spencer の regex を使用します.
LIKEパターンもテストできますか?
はい。ツールはLIKEとREGEXP/RLIKEパターンの構文をサポートしています.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement