Crate string_patterns

source ·

Enums

  • Defines the start, end and both bounds of a word

Traits

  • Methods to validate strings with character classes
  • Method to check if the string may be parsed to an integer or float
  • Return the indices of all ocurrences of a string
  • Provides methods to match words with differnt word boundary and case-semsitivity rules
  • Set of methods to capture groups or match objects derived from Regex::captures.
  • Core regular expression match methods
  • Provides methods to match with multiple patterns expressed as arrays of tuples or simple strs (for pattern_match_many_ci and pattern_match_many_cs)
  • Pattern methods for arrays or vectors only, return vectors of booleans matching each input string
  • Core regular expression replacement methods
  • Provides methods to replace with multiple patterns expressed as arrays of tuples
  • Methods for whole or partial word replacements
  • Regex-free matcher methods for common use cases
  • Set of methods to strip unwanted characters by type or extract vectors of numeric strings, integers or floats
  • Methods to split a longer strong on a separator and return a vector of strings, a tuple of two strings or single optional string segment Note some methods may return empty segments in the case of leading, trailing or repeated separators See notes below
  • Converts arrays or vectors of strs to a vector of owned strings