Optional<(?<foo>.*)>
Captures Optional variables and name the captured variable foo
.
Then we can replace the Optional with non-Optional by using the named capture:
${foo}
Capture comments.
/\*\*(?<foo>.+)\*/
References
http://regexrenamer.sourceforge.net/help/regex_quickref.html