我有这样的代码注释块..
/**
* This method provide inheritance to the object supplied; this method inherit the
* public methods from the Parent class to the Child class. this also provide
* multiple inheritance, in which the method ambiguity is solved by the overriding
* the last inherited class's method.
* @access public
* @method inherit
* @param Object Parent
* @param Object Child
* @return Object
*/
并忽略诸如
/* This is a test comment for testing regex. */
我尝试了很多使用 javascript 中的正则表达式来获取此评论,但每次都失败。任何人都可以为此建议一个正则表达式或任何其他解决方案来提取评论块。