Regular Expressions 101

Community Patterns

Find comments in Kotlin

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\/\*[.\t\r\f\v \S]*\*\/|^[\t\r\f\v ]*\/\/.*
/
gm

Description

Finds comments in Kotlin but not inline comments

Submitted by anonymous - a month ago