正则匹配java多行注释

类似:

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column email_attachment.num
     *
     * @return the value of email_attachment.num
     *
     * @mbg.generated Mon Aug 27 11:12:45 CST 2018
     */

 

\/\*[\w\W]*?\*\/|\/\/.*

posted @ 2018-10-10 09:21  周睿  阅读(1554)  评论(0编辑  收藏  举报