+func pathExtractor(input string) [][]int {
+ surroundRegex := "[@~\\-_a-zA-ZА-Яа-яЁё/.0-9]*"
+ r := regexp.MustCompile("(" + surroundRegex + "[\\./]" + surroundRegex + ")")
+ return r.FindAllSubmatchIndex([]byte(input), -1)
+}
+
+func stripParens(input string) string {
+ r := regexp.MustCompile("^\\((.*)\\)$")
+ temp := [][]byte{}
+ temp = r.FindSubmatch([]byte(input))
+ if len(temp) <= 1 {
+ return input
+ }
+ return string(temp[1])
+}
+
+func postProcess(input string) string {
+ input = stripParens(input)
+ return input
+}
+
+func GetAllMatches(input string, format string) []string {
+ options := MatchOptions{format: format}