RegEx in Sublime Text: Match any character, including newlines? January 9, 2023 by Tarik Try adding the (?s) inline flag start the start of the pattern. That will make . match any character.