Based on this answer from @kingkeith on the sublime text forum (thanks).
When using regular expressions to search within sublime text, flags can be specified by adding (?MY_FLAGS) at the beggining of the expression.
Example:
(?s)pattern with dots also matching new lines