package main
import (
"regexp"
"fmt"
)
func main() {
var re = regexp.MustCompile(`(?m)(?<!:)//[^\r\n]*`)
var str = `LOAD TEXT(VKONT) AS ΣΥΜΒΟΛΑΙΟ //amatak 2022/07/27 add where
FROM [lib://DataLakeQVDs_V2 (intranet_qview)/ΠΑΡΑΓΩΓΙΚΟΤΗΤΑ/PROD_EX_FKK_INSTPLN_HEAD.QVD]
(qvd) where match(left(VKONT,1),3); //amatak 2022/07/27 add where`
for i, match := range re.FindAllString(str, -1) {
fmt.Println(match, "found at index", i)
}
}
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Golang, please visit: https://golang.org/pkg/regexp/