diff --git a/misc.go b/misc.go index 8f4f904..2520b15 100644 --- a/misc.go +++ b/misc.go @@ -5,6 +5,16 @@ import ( "unicode" ) +func dotCharacters() []rune { // Returns all possible characters represented by the dot metacharacter + start := 0x0020 + end := 0x007E + to_return := make([]rune, (end-start)+1) + for i := start; i <= end; i++ { + to_return = append(to_return, rune(i)) + } + return to_return +} + func isAlphaNum(c rune) bool { return unicode.IsLetter(c) || unicode.IsNumber(c) }