I am writing a web application in golang. I am using regular expression to validate the URL. But I am not able to include '/' in the URL validation.
var validPath = regexp.MustCompile("^/(home|about)/(|[a-zA-Z0-9]+)$")
The above URL takes '/home/', '/about/' but could not make for '/'.
Could anyone please help me on this?