package main
import (
"fmt"
"regexp"
)
func main() {
s := "go Java php Python C++ c c#"
re := regexp.MustCompile(`[A-Z][^A-Z]*`)
matches := re.FindAllString(s, -1)
for _, part := range matches {
fmt.Println(part)
}
}
/*
run:
Java php
Python
C++ c c#
*/