Prompt library · AI · 1 prompt
Prompts from the guide
Regex Without the Learning Curve: AI Writes It, Explains It, Tests It
One prompt from this guide. Fill in whatever sits in [square brackets] — your own context, the document text or the name of your tool. That context is exactly what separates a generic answer from a usable one.
How to do it
Write me a regular expression for [Google Sheets, the REGEXEXTRACT function / VS Code / Python]. I want to pull out of the text: [US phone numbers — ten digits, may have spaces or dashes grouped, and may have a +1 prefix]. Examples it SHOULD match: +1 601 123 4567 6011234567 601-123-4567 Examples it should NOT match: 123456 (an order number) 1/6/2026 Return: 1) the expression, 2) a line-by-line explanation of each part, 3) a table of my examples with the result match/no match.