^start of line
*the literal (3210 / 408 / 2016) , repeated any number of times
\wany word character
Positive Lookahead(?=(?:[\w ]{0,30}\w)? *$) Non-Capturing Group(?:[\w ]{0,30}\w)? ?repeats the group contents below at most once:
Character Class[\w ]{0,30} {0,30}matches between 0 and 30 characters from the set below:
\wany word character
the literal (3210 / 408 / 2016)
\wany word character
*the literal (3210 / 408 / 2016) , repeated any number of times
$end of line
\w*any word character, repeated any number of times
Non-Capturing Group(?: \w+)* *repeats the group contents below any number of times:
the literal (3210 / 408 / 2016)
\w+any word character, repeated at least once
*the literal (3210 / 408 / 2016) , repeated any number of times
$end of line
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