docs.rs failed to build strscan-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: strscan-0.1.1

Strscan

Simple rust library for matching text against regular expressions for use in lexers or other software.

Basic Usage


extern crate strscan;
use strscan::StringScanner;

let s = StringScanner::new(input_string);
let r_chars = Regex::new(r"\A\s*(\w+)\s*")

let res = s.scan(r_chars)
println!("chars with possible space: {}", res.unwrap());
println!("chars: {}", s.match_at(1).unwrap());