Skip to content

内容忽略正则表达式集合 #1209

Pinned Answered by YiiGuxing
YiiGuxing asked this question in Q&A
Discussion options

You must be logged in to vote
[/*]+

Java, JavaScript 等语言的注释内容忽略正则表达式

最简单粗暴,缺点是注释和文档内容中的 /* 也会被忽略掉,效果如下图所示:

Replies: 5 comments

Comment options

YiiGuxing
Apr 2, 2020
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by YiiGuxing
Comment options

YiiGuxing
Apr 2, 2020
Maintainer Author

You must be logged in to vote
0 replies
Comment options

YiiGuxing
Apr 2, 2020
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #470 on April 11, 2022 16:49.