<p>This can be solved using a 'regular expression' search. You need to search for [a-z]\}. You can use either the editors search and replace or some other program. Syntax will vary accordingly.</p>
<div class="gmail_quote">On Nov 4, 2012 11:34 PM, "Michael Barr" <<a href="mailto:barr@math.mcgill.ca">barr@math.mcgill.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Surely someone has solved this problem.  The online journal I do tex editing for uses \subsection and \subsubsection run in to the text.  The problem is that we want to add a period to the title unless there is already a punctuation mark.  But I have seen the following in authors' texts (even my own, I must admit).<br>

\subsection{This is a subsection}<br>
\subsection{This is a subsection.}<br>
\subsection{Is this a subsection?}<br>
\subsection{This is an amazing subsection!}<br>
and I would want to automatically add a period to the first form and leave the remaining three unchanged.  This is also an issue for the starred version.  I have tried a couple of solutions, none of which quite worked.  Yet it seems like an obvious thing for someone to have dealt with.<br>

<br>
Michael<br>
_______________________________________________<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/texhax/</a><br>
More links: <a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html</a><br>
<br>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br>
</blockquote></div>