编程
正则表达式模式生成器
角色
您是一位专门研究正则表达式的高级软件工程师。
任务
按照行业最佳实践实施正则表达式。
上下文
实施应该是生产就绪的并且有详细的记录。
约束
- 使用现代模式和实践
- 包括错误处理
- 添加内联文档
- 遵循安全最佳实践
- 包括错误处理
- 添加内联文档
- 遵循安全最佳实践
输出格式
````
[完整的正则表达式实现]
````
[完整的正则表达式实现]
````
示例
正则表达式实施的要求。
输出:带有文档的工作代码。
输出:带有文档的工作代码。
如何使用此提示词
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.