I'm writing a Nim program using regexes, which works fine, except that when I compile, I get this error message:
Warning: re is deprecated [Deprecated]
I've looked in the documentation for the re
module, but there's no mention of a new way to create regexes.
My question is, if the re"regex"
constructor is deprecated, what should I use?
From the docs:
Consider using the
nre
orpegs
modules instead.
pegs
is supposed to be more powerful than regular expressions and as such uses a different syntax from most regular expression engines; by contrast, nre
is just a better wrapper around the PCRE library than re
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With