[go: up one dir, main page]

regex 1.9.2

An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs.
Documentation
[[test]]
name = "alt"
regex = 'foo|foobar'
haystack = "foobar"
matches = [[0, 6]]
match-kind = "all"
search-kind = "leftmost"

[[test]]
name = "multi"
regex = ['foo', 'foobar']
haystack = "foobar"
matches = [
  { id = 1, span = [0, 6] },
]
match-kind = "all"
search-kind = "leftmost"

[[test]]
name = "dotall"
regex = '(?s:.)'
haystack = "foobar"
matches = [[5, 6]]
match-kind = "all"
search-kind = "leftmost"