Creating a regexp

Hi,

I would like to create a regexp to extract values of a string. I don’t know what the problem with my function createRegexpFromIfmt in this example.
I believe that the problem is about some characters to escape but don’t know…

When using this function, I don’t get the expected result for fmt.Println(rr.FindStringSubmatch(v)).

Thanks

Hi @sgaunet ,

The only difference I can see in the code is Printf("%#v\n",...) vs Println(...), which seems to cause the different output.

1 Like

damn, you’re right. Thanks a lot

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.