To have nre regex usage

2022-02-16 Thread setvejohnson
thanks for the information

To have nre regex usage

2022-02-13 Thread tcheran
You can discover the data type yourself using something like echo(type(mat)) Run eventually taking advantage of wonderful Nim's playground

To have nre regex usage

2022-02-13 Thread mardiyah
I'm noob in nim sorry if often asking is get would really work natively or need options module ?

To have nre regex usage

2022-02-13 Thread Symb0lica
import std/nre var str = "foo" let mat = find( str, re( r"(f)(o*)" )) if isNone(mat): echo "false" else: echo "m" & mat.get.captures[1] Run

To have nre regex usage

2022-02-13 Thread mardiyah
How is the nre regex usage from the already known re modules one, e.g. this: import std/re var str = "foo" m :array[3, string] if -1 == find( str, re( r"(f)(o*)" ), m) : echo "false" else: echo "m" & m[1] need to use the `find` one in import std/nre instead