wildescape

Crates.iowildescape
lib.rswildescape
version0.1.0
sourcesrc
created_at2023-09-05 12:49:26.602095
updated_at2023-09-05 12:49:26.602095
descriptionSimple string matching with questionmark, star wildcard operator and an escaped character.
homepage
repositoryhttps://github.com/ImJeremyHe/wildescape
max_upload_size
id964246
size24,122
(ImJeremyHe)

documentation

README

wildescape

build status docs downloads crate license codecov

This is a fork of wildmatch, but with an escape character defined.

Match strings against a simple wildcard pattern. Tests a wildcard pattern p against an input string s. Returns true only when p matches the entirety of s.

See also the example described on wikipedia for matching wildcards.

  • ? matches exactly one occurrence of any character.
  • * matches arbitrary many (including zero) occurrences of any character.
  • ~ is the escaped character for matching ?, * and ~.
Commit count: 80

cargo fmt