Yes, that's what the dot is for to match everything (literally)
Of the regex I've learned, and I quote, > most regex engines have a "dot matches all" or "single line" mode that makes the dot match any single character, including line breaks. Use the dot sparingly. Often, a character class or negated character class is faster and more precise.