nitely / nim-regex

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

Match arbitrary bytes #134

Closed nitely closed 6 months ago

nitely commented 6 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: