1. Match a comment that starts with /* and ends with */
/\*.*?\*/
2. Match a comment that starts with /*, ends with optional */
/\*.*?(?:\*/)?
Python 正则表达式验证多行注释
最新推荐文章于 2025-01-25 15:24:09 发布
1. Match a comment that starts with /* and ends with */
/\*.*?\*/
2. Match a comment that starts with /*, ends with optional */
/\*.*?(?:\*/)?