Regex Input

/\b\w+@\w+\.com\b/gi
12
About this piece

Regex Input

Regex input with slashes, violet flags, and a tabular match-count pill on the right.

Usage

The import and the props worth knowing about, in one place.

import { Editor21 } from "@/components/beste/piece/editor21";

<Editor21
  pattern="\b\w+@\w+\.com\b"
  flags="gi"
  matches={12}
/>

More Editor pieces

View all Editor
onboarding3/12
activation

Find & Replace

Two-row editor find bar with match counter, case/regex toggles, prev/next, replace, and replace-all.

1function·greet(name)·{
2return·`Hello,·${name}!`;
3}

Whitespace Markers

Code lines with muted middle-dots for spaces and → glyphs for tabs, revealing indentation.

button.tsx
export function Button({ label }) {
return <button>{label}</button>;
return <button className="btn">{label}</button>;
}

Diff View

Unified diff with tinted add and remove rows, line numbers, and +/− prefix column.

The implmentation ships on Friday.
  • implementation
  • implements
  • implemented

Spell Check

Sentence with a rose wavy underline on a misspelling and a suggestions dropdown below.

--primary: #f43f5e;
--accent: #8b5cf6;
--surface: #0ea5e9;

Color Preview

CSS lines with inline color swatch squares next to each hex value.

1// TODO migrate to server components
2// FIXME handles null state poorly
3// NOTE revisit once design lock lands

TODO Comment

Italic comment lines with colored TODO, FIXME, NOTE, or HACK tags.