\W*any non-word character, repeated any number of times
\ban ASCII word boundary
Negative Lookahead(?!foobar) foobarthe literal text foobar (case sensitive) .+?any character, repeated at least once
\ban ASCII word boundary
\W*any non-word character, repeated any number of times
g modifier: global. Finds all matches instead of stopping after the first
s modifier: single line. Allows a dot to match line terminators