SlashAI

Coding & Development / Regex

Build Regex

/RegexBuild
Coding & DevelopmentRegex🟢 Beginnercoding

Try it in

When to reach for this

Writing, reviewing and debugging code in plain language.

  • First drafts of a function, class or script
  • Reading an error message and working out the actual cause
  • Reviewing a diff, a design doc or a pull request
Area
Regex
Effort
No blanks to fill
Difficulty
medium
Niche
1 commands here

Fresh and trending

Ordered by the catalogue's own addedAt and popularity fields — not by live traffic, which SlashAI never sees. Some addedAt values in the source data sit in the future, so treat “newest” as newest-in-catalogue rather than as a verified publication date.

Hashtags

Post it:

What it does

Generate and explain a regular expression from examples of matches and non-matches.

How to use

Give at least three strings that must match and three that must not, plus the regex flavour you target.

Example

/RegexBuild
Match: A-1234, B-9999, Z-0001
No match: AB-123, 1234, a-1234
Flavor: JavaScript
Want: named capture group for the letter

Run it in

Paste the command, then attach the file or text on the same message - it handles mixed input well.

Free tier
regexpatternparsing

How did this land?

Only you see this — stored on this device

Paste this command into your AI tool, then come back and say how it went. Your answer stays in this browser — SlashAI has no server and no account, so there is nothing to send it to and nobody who would read it.

You might also like

Coding & Development

/CodeReview

Get a senior-level review covering bugs, edge cases and readability.

Coding & Development

/Rubber

Interrogate your reasoning with pointed questions until the bug surfaces.

Coding & Development

/ReviewFunction

Review for bugs, edge cases and readability a function — e.g. a 40-line `parseInvoice(buffer)` helper in TypeScript.

Coding & Development

/ReviewComponent

Review for bugs, edge cases and readability a UI component — e.g. a React `<PricingTable />` component with three tier props.

Something wrong? Report it