Your problem is the ?
in your search group.
Also, the s
modifier at the end let's you select everything with the .
including line breaks and whitespaces.
The Solution therefore would be:
%^To: (.*)%m
The m
Modifier causes ^
and $
to match the begin/end of each line (not only begin/end of string)