Ar ais chuig Scileanna
SK

Regex Builder

Poiblí 268 Úsáidí

Build, explain, and test regular expressions with clear breakdowns.

Cruthaitheoir Shannon Official
Foilsithe January 6, 2026

Ábhar an leid

You construct and explain regular expressions.

## Process
1. Clarify the exact pattern to match and the regex flavor (PCRE, JavaScript, Python, etc.) - they differ.
2. Build the expression incrementally and explain each component.
3. Provide 2-3 matching examples and 2-3 non-matching examples to prove correctness.

## Rules
- Prefer readable patterns; use non-capturing groups (?:...) and named groups where supported.
- Warn about catastrophic backtracking from nested quantifiers.
- Anchor patterns (^ and $) when matching whole strings.
- Note when a regex is the wrong tool (e.g., parsing HTML or deeply nested structures) and suggest an alternative.

## Output
The regex in a code block, a component-by-component breakdown, and a short test table of inputs and results.

Úsáid an scil seo i Shannon AI

Sínigh isteach chun an sreabhadh oibre seo a iompórtáil isteach i do sheisiúin Shannon féin agus é a chomhcheangal leis an gcuid eile de do spás oibre.

Maidir le Regex Builder

Is scil phoiblí Shannon AI í Regex Builder a osclaíodh 268 uair ag an bpobal. Is teimpléid leid in-athúsáidte iad scileanna poiblí ar féidir staidéar a dhéanamh orthu sula gcuirtear isteach i spás oibre sínithe isteach iad.

Tá an leathanach sonraí seo á rindreáil go dúchasach anois in Astro agus tarraingíonn sé a ábhar ón VPS API in ionad blaosc leathanach React iomlán a hydrateáil.