1. Match a comment that starts with /* and ends with */
/\*.*?\*/
2. Match a comment that starts with /*, ends with optional */
/\*.*?(?:\*/)?
Python 正则表达式验证多行注释
最新推荐文章于 2023-04-03 18:22:18 发布
1. Match a comment that starts with /* and ends with */
/\*.*?\*/
2. Match a comment that starts with /*, ends with optional */
/\*.*?(?:\*/)?