simple-text-pattern 0.1.0

Matching simple text patterns.
Documentation
[![Travis Build Status](https://travis-ci.org/svmk/simple-text-pattern.svg?branch=master)](https://travis-ci.org/svmk/simple-text-pattern)
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
[![crates.io](https://meritbadge.herokuapp.com/simple-text-pattern)](https://crates.io/crates/simple-text-pattern)
[![Released API docs](https://docs.rs/simple-text-pattern/badge.svg)](https://docs.rs/simple-text-pattern)

# Rust simple text pattern library

This crate provides a library for compiling and matching simple text patterns.

# Example
Passed pattern `some*text` will be compiled into equivalent regexp `^some.*text$`.

# Syntax
* `*` - one or more any symbol.
* `any other text` - interpreted as simple text.

# Usage
```rust
use simple_text_pattern::Pattern;
let pattern = Pattern::new("some*text").expect("Unable to compile pattern");
assert_eq!(true, pattern.is_match("sometext"));
assert_eq!(true, pattern.is_match("some text"));
assert_eq!(false, pattern.is_match("not some text"));
```