Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributerandexp

Create random strings that match a given regular expression.

pub.devRemove
validators2

String validation and sanitization for Dart.

pub.devRemove
ScoresHealth4183 (best)
Maintenance088 (best)
Quality9696
Popularity2850 (best)
Community680 (best)
Compatibility100100
UsageDownloads (30 days)9.5k78k (best)
Likes59 (best)
Pub points150 / 160150 / 160
GitHub stars3 (best)0
MaintenanceLatest release0.0.1, 5 years ago5.1.1, 3 weeks ago (best)
Major versions in 12 months00
Contributors19 (best)
PublisherUnverifiedonepub.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies20 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Supports a wide range of regex features like groups, piping, and back-references.
  • Allows custom PRNGs for seeded or cryptographic randomness.
  • Configurable maximum repetition for infinite repetitional tokens.
  • No external dependencies, pure Dart.
  • Up-to-date regexes and edge‑case handling (e.g., email backtracking fix).
  • Supports Dart 3.x and null safety.
Weaknesses
  • Some badly placed positional or negated character sets cannot match anything and return empty strings.
  • Limited to string validation; no UI components.
  • No built‑in error message localization.
  • Not a form builder, just helper functions.
WarningsNoneNone
randexp vs validators2: which Flutter package should you use? | pubscout