RegEx in Sublime Text: Match any character, including newlines?

Joseph picture Joseph · Aug 16, 2012 · Viewed 33.7k times · Source

Is there a way to match any character in Sublime Text, including newlines? I saw that Sublime uses Boost's syntax but that the . character won't match newlines without a specific flag set.

Answer

MRAB picture MRAB · Aug 16, 2012

Try adding the (?s) inline flag start the start of the pattern. That will make . match any character.