I want to get a regex which will match a tag in a java comment so I can replace it with a .net comment.
eg I have this:
/**
* Some method description
*
* @param paramName Parameter description
* which may span more than 1 line
* @return return value.
* @throws ExceptionName some exception description
* again may span more than 1 line.
*/
and I want to end up with this:
///
/// Some method description
///
/// <param name="paramName"> Parameter description
/// which may span more than 1 line</param>
/// <returns> return value.</returns>
/// <exception cref="ExceptionName"> some exception description
/// again may span more than 1 line.</exception>
///
The part that I'm not sure about is the best way to deal with matching the @tag and potentially the name afterwards and how to match the inner text that will go between the angle brackets.
Any ideas appreciated.