use-regex 0.1.0

Practical regex utility helpers for RustUse
Documentation
  • Coverage
  • 63.64%
    14 out of 22 items documented1 out of 14 items with examples
  • Size
  • Source code size: 11.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 531.82 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • RustUse/use-pattern
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-regex

Practical regex helper utilities for RustUse.

Warning: versions below 0.3.0 are experimental and may change as the workspace matures.

Example Usage

use use_regex::{escape_regex, is_valid_regex};

assert_eq!(escape_regex("a+b"), "a\\+b");
assert!(is_valid_regex(r"\d+"));

Scope

  • lightweight wrappers around the mature regex crate
  • simple validation, matching, extraction, and replacement helpers
  • string-oriented utilities that stay small and predictable

Non-Goals

  • regex engine implementation
  • parser generators
  • validation frameworks
  • security sandboxing

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0