Answer the question
In order to leave comments, you need to log in
Differences between regular expressions in go and in grep?
In general, such a problem that grep normally selects expressions from a file, the command looks like this grep '^//' rtf.php
, I write such code in go, but it doesn’t find anything.
b,_ := ioutil.ReadFile("rtf.php")
r,_ := regexp.Compile(`^//`)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question