Home | History | Annotate | Download | only in regexp

Lines Matching full:extract

782 		name, num, rest, ok := extract(template)
815 // extract returns the name from a leading "$name" or "${name}" in str.
816 // If it is a number, extract returns num set to that number; otherwise num = -1.
817 func extract(str string) (name string, num int, rest string, ok bool) {