Regular Expressions 101

Community Patterns

Multi Line Copy Right Header

0

Regular Expression
Java 8

"
/\*\n?\r? (?: \* ©20\d{2}.*\n?\r?) (?: \*(?:.*\n?\r?))+ \*/
"
mg

Description

Matches a copyright header in a Java-esque multi line comment

Submitted by PhiSe - 2 years ago