#match.matcher_capture Bug

9 messages · Page 1 of 1 (latest)

lunar axle
#

You missed a backtick =]

ember agate
#

whaaat, i am putting it lol ahah, but it its not working 🤣

lunar axle
#

```odin

ember agate
#

i am actually writing this and it is not working xD

lunar axle
#

Actually ...
```cpp since odin isn't recognized by discord, yet.

#

Get rid of the asterisk in the first line. Do you see how it goes italic after match.matcher on the first line?

ember agate
#
day3 :: proc(content: string) -> (result: int) {
    matcher := match.matcher_init(content, "(mul%(%d+,%d+%))")
    for  in match.matcher_gmatch(&matcher) {
        fmt.println(match.matcher_captures_slice(&matcher))
        fmt.println(match.matcher_capture(&matcher, 0))
    }
    return
}
#

that is bugging in there

#

i will paste it in here