# wildescape
[](https://github.com/ImJeremyHe/wildescape/actions?workflow=Build)
[](https://docs.rs/wildescape)
[](https://crates.io/crates/wildescape)
[](https://crates.io/crates/wildescape)
[](https://opensource.org/licenses/MIT)
[](https://codecov.io/gh/ImJeremyHe/wildescape)
**This is a fork of [wildmatch](https://github.com/becheran/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](https://en.wikipedia.org/wiki/Matching_wildcards) 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 `~`.