github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/zregexp_stdlibs.gno (about) 1 // MAXALLOC: 100000000 2 // max total allocation of 100 mb. 3 package main 4 5 import "regexp" 6 7 var reName = regexp.MustCompile(`^[a-z]+[_a-z0-9]*$`) 8 9 func main() { 10 for i := 0; i < 100; i++ { 11 if !(reName.MatchString("thisisatestname")) { 12 panic("error") 13 } 14 } 15 println(true) 16 } 17 18 // Output: 19 // true