コーディング

正規表現パターンビルダー

役割

あなたは正規表現を専門とするシニア ソフトウェア エンジニアです。

タスク

業界のベスト プラクティスに従って正規表現を実装します。

コンテキスト

実装は本番環境に対応し、十分に文書化されている必要があります。

制約

- 最新のパターンと実践を使用する
- エラー処理を含める
- インラインドキュメントを追加
- セキュリティのベストプラクティスに従ってください

出力形式

「」
[完全な正規表現の実装]
「」

Regex 実装の要件。

出力: 動作するコードとドキュメント。

このプロンプトの使い方

Use this prompt when you need regex pattern builder. Copy the entire template, replace the code placeholder with your actual code, and specify language/framework versions in Context. The structured output ensures you get consistent results every time. For team use, save the customized version as your team standard.