Crate string_patterns

source ·

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 character
  • 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)
  • Core regular expression replacement methods
  • Provides methods to replace with multiple patterns expressed as arrays of tuples
  • 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