# If you'd like to omit non-matching lines from the result; add ';d' to the end of the expression.
sed -E 's/Zapp\s+\((.*?)\s+\/\/ defaultParameterValue\s+,\s+"(.*)"\s+\\/\\/\s+name\s+,\s+(.*?)\s+\\/\\/\s+min\s+,\s+(.*?)\s+\\/\\/\s+max\s+,\s+(.*?)\s+\\/\\/\s+d.p.'s/Zapp (NormalisableRange<float> ($3, $4) ,NormalisableRange<float> ($3, $4).convertTo0to1($1) , "$2" \/\/ name , $5 \/\/ d.p.’s/;t' <<< "new Zapp (0.89f // defaultParameterValue
, \"A name\" // name
, 0.1 // min
, 0.5 // max
, 2 // d.p.'s to show"
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for SED, please visit: https://www.gnu.org/software/sed/manual/html_node/The-_0022s_0022-Command.html