code: func regexpSelection(text []byte, expr string) Selection {
  	var matches [][]int
  	if rx, err := regexp.Compile(expr); err == nil {
  		matches = rx.FindAllIndex(text, -1)
  	}
  	return makeSelection(matches)
  }
docs: // regexpSelection computes the Selection for the regular expression expr in text.