Skip to content

Location

Choose a tag to compare

@jsim2010 jsim2010 released this 08 Jan 17:57

This release adds the functionality to search for only the start and length of a match.

New

  • Added Pattern.load() to attempt creating Patterns from data unknown prior to runtime.
  • Added Location and Locations to store data about location of one and multiple matches respectively.
  • Added Pattern.locate() and Pattern.locate_iter() to return Location(s)

Improved

  • Updated Rust edition to 2018.
  • Added to &str.to_rec() ability to escape "*".