0

The following code prints true. It should return false shouldn't it?

package main

import "regexp"
import "fmt"

func main() {
  res, _ := regexp.MatchString("[a-z][0-9a-zA-Z_$]*", "%s")
  fmt.Println(res)
}

https://play.golang.org/p/A_x5WID9wl

Simon C
  • 436
  • 4
  • 11

0 Answers0