正则表达式:匹配多行注释?

时间:2017-11-27 01:20:55

标签: java regex

我正在尝试匹配源代码中的多行注释,如下所示:

axis([a b c d])

应仅返回注释部分(以/ **开头,以* /结尾)。到目前为止,我有以下内容:

    /**
     * Loads an {@link Ext.data.Model} into this form (internally just calls {@link Ext.form.Basic#loadRecord})
     * See also {@link Ext.form.Basic#trackResetOnLoad trackResetOnLoad}. The fields in the model are mapped to 
     * fields in the form by matching either the {@link Ext.form.field.Base#name} or {@link Ext.Component#itemId}.  
     * @param {Ext.data.Model} record The record to load
     * @return {Ext.form.Basic} The Ext.form.Basic attached to this FormPanel
     */
    loadRecord: function(record) {
        return this.getForm().loadRecord(record);
    },

/**
 * Convenience function for fetching the current value of each field in the form. This is the same as calling
 * {@link Ext.form.Basic#getValues this.getForm().getValues()}.
 *
 * @inheritdoc Ext.form.Basic#getValues
 */
getValues: function(asString, dirtyOnly, includeEmptyText, useDataValues) {
    return this.getForm().getValues(asString, dirtyOnly, includeEmptyText, 
  useDataValues);
},

0 个答案:

没有答案