(?s)applies the following effective flags to the remainder of the pattern: gus s modifier: single line. Allows a dot to match line terminators
\ba Unicode word boundary
goodthe literal text good (case sensitive) Negative Lookahead(?!.*?good.*?bad) .*?any Unicode character, repeated any number of times
goodthe literal text good (case sensitive) .*?any Unicode character, repeated any number of times
badthe literal text bad (case sensitive) .*?any Unicode character, repeated any number of times
\ba Unicode word boundary
badthe literal text bad (case sensitive) .*?any Unicode character, repeated any number of times
\ba Unicode word boundary
goodthe literal text good (case sensitive) g modifier: global. Finds all matches instead of stopping after the first
u modifier: unicode. Treats the pattern and subject as UTF-16