主题行后面有更多空格,或者您的案例可能有分隔符。你可以尝试用两个或更多的空格来匹配这个案例。例如
regexEquation = "(---.*?)Subject:[^\n]*(\s)+"
您可以从中获得有关匹配更多空间的帮助 here 或 here .
**Output**: As requested by John, here's the map and the forecast... Call me if you have any questions (403) 974-6756.