Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 650 Bytes

CONTRIBUTING.md

File metadata and controls

9 lines (7 loc) · 650 Bytes

How python vs rust regexes

  • re.match searches at the beginning of a string
  • re.search searches anywhere at the string
  • pip has regex package used here
  • regex::is_match has implicit .*? at the beginning and end of a pattern
  • fancy-regex does not support branches during backtracking

When porting, be careful in tracking all regex usages. If re.is_match used, prepend the regular expression with ^.