Nim `Warning: re out of date`, what to use instead?

I am writing a Nim program using regular expressions that works fine, except that when compiling I get this error message:

Warning: re is deprecated [Deprecated] 

I looked at the documentation for the re module, but there is no mention of a new way to create regular expressions.

My question is: if the re"regex" constructor is deprecated, what should I use?

+6
source share
1 answer

From the docs :

Use nre or pegs nre .

pegs should be more powerful than regular expressions, and as such uses a different syntax from most regular expression engines; nre , on the contrary, is a better PCRE library shell than re .

+6
source

All Articles