diff --git a/main.go b/main.go index 1d67f1b..e4a535d 100644 --- a/main.go +++ b/main.go @@ -44,12 +44,12 @@ func check(e error) { } func tcp_rows(connections_file string) { - regexpression := regexp.MustCompile(`[^a-zA-Z0-9_:\r\n\t\v]+`) + regexpression := regexp.MustCompile(`[\r\n\t\v]+`) tcp_lines := strings.Split(connections_file, "\n") for _, line := range tcp_lines { trim_line := strings.TrimSpace(line) - values := regexpression.ReplaceAllString(trim_line, ",") + values := regexpression.Split(trim_line, -1) // Debug // fmt.Println("New Line ==========") fmt.Println(values)