We could implement `std::str::pattern::Pattern` to be able to utilize many methods of the standard library. This issue is waiting for stabilization of https://github.com/rust-lang/rust/issues/27721.