]> Sergey Matveev's repositories - path-extractor.git/blob - pe.go
a95a3857fc859e9e616b5e6bcced67425e223a4b
[path-extractor.git] / pe.go
1 package main
2
3 import "os"
4 import "bufio"
5 import "fmt"
6
7 func main() {
8     stdin := os.Stdin
9     if scanner := bufio.NewScanner(stdin); scanner != nil {
10         for scanner.Scan() {
11             matches := getAllMatches(scanner.Text())
12             for _,match := range matches {
13                 fmt.Println(match)
14             }
15         }
16     }
17 }
18