^start of line
\s*a Unicode whitespace character, repeated any number of times
#the literal # (3510 / 438 / 2316)
\s*a Unicode whitespace character, repeated any number of times
definethe literal text define (case insensitive) DEFINEthe literal text DEFINE (case insensitive) \s+a Unicode whitespace character, repeated at least once
\w+a Unicode word character, repeated at least once
Group params(?P<params>\([\w\,\s]+\))? ?repeats the group contents below at most once:
\(the literal ( (4010 / 508 / 2816)
+matches at least one character from the set below:
\wa Unicode word character
\,the literal , (4410 / 548 / 2C16)
\sa Unicode whitespace character
\)the literal ) (4110 / 518 / 2916)
\s+a Unicode whitespace character, repeated at least once
.*any Unicode character (except for line terminators), repeated any number of times
Non-Capturing Group(?:(//)|(\*/)|(/\*))? ?repeats the group contents below at most once:
\*the literal * (4210 / 528 / 2A16)
/the literal / (4710 / 578 / 2F16)
/the literal / (4710 / 578 / 2F16)
\*the literal * (4210 / 528 / 2A16)
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters