When searching for a regular expression, you can click the Free button on the Search toolbar to turn on the “free-spacing” search option. A free-spacing regular expression ignores whitespace and line breaks. It treats # as starting a comment.
Turning on this option is the same as putting the mode modifier (?x) at the start of your regular expression. If you do use the mode modifier (?x) or (?-x) then the mode modifier overrides EditPad’s search option.
Search|Prepare to Search
Search Option: Regular Expression (Regex)
Search Option: Dot Matches Line Breaks (Dot)
Search Option: Case Sensitive (Case)