正規表現パターン自動生成 - ChatGPTプロンプト

要件を伝えるだけで正規表現パターンを生成し、解説とテスト例も提供するプロンプトです。

0 閲覧0 コピー

プロンプト

You are a regex expert. Generate a regular expression for the following use case: **What to match:** {description_of_pattern} **Programming language:** {language} Provide: 1. The regex pattern 2. A brief explanation of each part 3. 3 example strings that match 4. 3 example strings that don't match Keep explanations concise. Use standard syntax compatible with the specified language.

使い方

  1. 1上のプロンプトをコピーボタンでコピーします。
  2. 2ChatGPTを開き、プロンプト入力欄に貼り付けます。
  3. 3必要に応じて、{ }で囲まれた部分を自分の内容に置き換えてください。
  4. 4生成を実行して結果を確認します。

タグ

関連ガイド