javascript – How to convert a regular expression from js to golang?


I have two regular expressions that worked well in js to look for certain chains in my area and I wanted to convert them to use them in going, but I am new to that, I went to study what was a regular expression and I could not understand it very well, it seems a bit advanced For me, the regular expression I use is this:

regex = /"(dw_-){24}.(dw_-){6}.(dw_-){27}"/;
regex2 = /"key.(dw_-){84}"/;