nitely / nim-regex

Pure Nim regex engine. Guarantees linear time matching
https://nitely.github.io/nim-regex/
MIT License
228 stars 21 forks source link

Match arbitrary bytes #134

Closed nitely closed 11 months ago

nitely commented 11 months ago

fixes #108

this needs some refactor and tests

let flags = {regexArbitraryBytes}
doAssert match("\xff", re2(r"\xff", flags))
doAssert replace("\xff", re2(r"\xff", flags), "abc") == "abc"

TODO: