The documentation on the method itself is inadequate. It doesn't show how to pass in the source string, the regex, and the replacement https://github.com/OpenAPITools/openapi-generator/blob/561a707afc9def630ee8c728d010a38d351c0107/modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/mustache/ReplaceAllLambda.java#L38