// copied from tektoncd/pipeline
copied from tektoncd/pipeline
// copied from tektoncd / pipeline
func extractExpressionFromString(s, prefix string) (string, bool) {
	pattern := fmt.Sprintf(braceMatchingRegex, prefix, parameterSubstitution)
	re := regexp.MustCompile(pattern)
	match := re.FindStringSubmatch(s)
	if match == nil {
		return "", false
	}
	return match[0], true
}
func extractExpressionFromString ( s , prefix string ) ( string , bool ) { pattern := fmt . Sprintf ( braceMatchingRegex , prefix , parameterSubstitution ) re := regexp . MustCompile ( pattern ) match := re . FindStringSubmatch ( s ) if match == nil { return " " , false } return match [ 0 ] , true }
copied from tektoncd/pipeline
copied from tektoncd / pipeline