Most places in the program where you can specify a regular expression also has a "regular expression syntax" selection. If you select the "multi-line" version of the syntax, then the dot (.) character matches new-lines. For example .* matches the whole file.
Example: begin.*end matches everything from "begin" to "end" across multiple lines. "begin" could be at line 1 and "end" could be at line 100.