Launching a SaaS?·Collect waitlist signups before you build — before.run
SandboxPatternsDetectDocsChangelog
Markdown
#markdown
#list
#ul
#ol

Markdown List Item

Matches Markdown unordered list items starting with -, *, or + and ordered items starting with a number.

Markdown parsersTask list extractionContent processors
/
/
Safe
Test String
5 matches
^^^ — start of string (or line in multiline mode)
(…)Group #1Capturing group — captures matched text for reuse or extraction
\s*space\s — whitespace (space, tab, newline…) — repeated zero or more times (greedy) · * — zero or more times (greedy)
(…)Group #2Capturing group — captures matched text for reuse or extraction
[…]Character class […]Matches any single character listed in this set
||| — alternation: matches expression on left OR right
\d+digit\d — digit (0–9) — repeated one or more times (greedy) · + — one or more times (greedy)
\.\.\. — escaped character '.'
\s+space\s — whitespace (space, tab, newline…) — repeated one or more times (greedy) · + — one or more times (greedy)
(…)Group #3Capturing group — captures matched text for reuse or extraction
.+.. — matches any character except newline (unless 's' flag is set) — repeated one or more times (greedy) · + — one or more times (greedy)
$$$ — end of string (or line in multiline mode)
Pattern: 27 charsInput: 64 chars
100% client-side · private

Valid Examples

  • - item one
  • * item two
  • + item three
  • 1. first item
  • - nested item

Invalid Examples

  • Not a list
  • -no space
  • *

Usage & Integration

Validate Markdown List Item natively in your backend or frontend without copying regex strings.

Node / Edge

import { validate } from '@regexto/validators';

validate('markdown-list-item', '...');

Python

from regexto_validators import validate

validate("markdown-list-item", "...")

Go

import "github.com/regex-to/validators-go"

valid, err := validators.Validate("markdown-list-item", "...")

PHP

use RegexTo\Validators\Validator;

Validator::validate('markdown-list-item', '...');

Rust

use regexto_validators::validate;

let is_valid = validate("markdown-list-item", "...").unwrap();