Start supporting numbers and strings

This commit is contained in:
2023-02-25 16:45:54 +00:00
parent cbae1c4629
commit 636101f1fa
15 changed files with 379 additions and 37 deletions

14
src/regex.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import (
"log"
"regexp"
)
func makeRegex(str string) *regexp.Regexp {
Compile, err := regexp.Compile("^(" + str + ")$")
if err != nil {
log.Fatal(err)
}
return Compile
}