regular expression for javadoc style comment

Craig Ringer craig at
Sun Dec 19 07:56:06 CET 2004

On Fri, 2004-12-17 at 09:40, Alessandro Crugnola wrote:
> Hi all,
> i need to use a regular expression to match javadoc style comments in a file,
> something like
> 	/**
> 	 * Constructs a new Call instance.
> 	 *
> 	 * @param object the object the Function shall be executed on
> 	 * @param func the Function that shall be executed
> 	 * @throws IllegalArgumentException if neigther the object or the function is not available.
> 	 */
> i'm finiding many difficulties to write a valid regular expression

It would be good if you could post some of the things you've tried, and
perhaps a little more detail about what you're trying to match. Are you
trying to match the comment as a whole, eg "this is a javadoc comment",
or are you trying to extract parts of it?

Craig Ringer

More information about the Python-list mailing list