parsers/lang_parser_funcs.go
2022-08-04 00:05:19 +02:00

12 lines
280 B
Go

package parsers
import "regexp"
type LanguageParserFunc func(str string) []string
var SquareBracketsLanguageParserRegex = regexp.MustCompile(`\[.+?\]`)
func SquareBracketsLanguageParser(str string) []string {
return SquareBracketsLanguageParserRegex.FindAllString(str, -1)
}