search

Home  >  Q&A  >  body text

请问在java中,如何用正则表达式获取<![CDATA[要获取的内容 ]]> 里面的内容呢?

伊谢尔伦伊谢尔伦2770 days ago939

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 14:35:01

    . Matches any character

    except newline characters

    http://deerchao.net/tutorials/regex/regex.htm#metacode

    \<\!\[CDATA\[(?<text>[^\]]*)\]\]\>
    

    reply
    0
  • Cancelreply