How to remove double dots in titles?

Hello,
in the titles of my references, some entries have double dots. This is because I used “.” in the postText of Export-Filter_Editor_Linux_64bit_V04b and only a subset of the references I download from PubMed has a final dot in the title.
How can I remove double dots when present? I reckon it must be a kind of logical instruction, but how and where to place it?

The types of layouts I have are like this:

LAYOUT
article=\begin{author}. \format[Authors(LastFirst,FirstInitial,NoPunc,sep=\, ,LastSep=\, ,EtAl= et al,15,15),]{\author}\end{author}.\begin{title} \format[RemoveLatexCommands]{\title} \end{title}\begin{journal}\format[JournalAbbreviator]{\journal}\end{journal}.\begin{year} \year\uniq;\end{year}\begin{volume}\format[RemoveLatexCommands]{\volume}\end{volume}\begin{number}(\format[RemoveLatexCommands]{\number})\end{number}:\begin{pages}\format[RemoveLatexCommands,FormatPagesForHTML]{\pages}.\end{pages}<be>

LAYOUT
default=\begin{author}\format[Authors(LastFirst,FirstInitial,NoPunc,sep=\, ,LastSep= & ,EtAl= et al.,10,9),]{\author} \end{author}\begin{year}(\year\uniq) \end{year}\begin{title}\format[RemoveLatexCommands]{\title}. \end{title}\begin{journal}\format[RemoveLatexCommands,JournalAbbreviator]{\journal} \end{journal}\begin{volume}\format[RemoveLatexCommands]{\volume}, \end{volume}\begin{pages}\format[RemoveLatexCommands,FormatPagesForHTML]{\pages}.\end{pages}<be>

Thank you

I’ve never used this but at least in theory something like this should work (if you replace the equivalent section of your layout files)

\begin{title}\format[RemoveLatexCommands,Replace(\.\.,)]{\title}. \end{title}

or

\begin{title}\format[RemoveLatexCommands,Replace(\.\.,.)]{\title}. \end{title}

I think you might have to use " if you want to use [ or ] though

Perhaps using $ to match the line ending is more useful in your circumstances?

I tried to change from

LAYOUT
default=\begin{author}\format[Authors(LastFirst,FirstInitial,NoPunc,sep=\, ,LastSep= & ,EtAl= et al.,10,9),]{\author} \end{author}\begin{year}(\year\uniq) \end{year}\begin{title}\format[RemoveLatexCommands]{\title}. \end{title}\begin{journal}\format[RemoveLatexCommands,JournalAbbreviator]{\journal} \end{journal}\begin{volume}\format[RemoveLatexCommands]{\volume}, \end{volume}\begin{pages}\format[RemoveLatexCommands,FormatPagesForHTML]{\pages}.\end{pages}<be>

to

LAYOUT
default=\begin{author}\format[Authors(LastFirst,FirstInitial,NoPunc,sep=\, 
,LastSep= & ,EtAl= et al.,10,9),]{\author} \end{author}\begin{year}(\year\uniq) 
\end{year}\begin{title}\format[RemoveLatexCommandsReplace(\.\.,)]{\title}. 
\end{title}\begin{journal}\format[RemoveLatexCommands,JournalAbbreviator]{\
journal} \end{journal}\begin{volume}\format[RemoveLatexCommands]{\volume}, 
\end{volume}\begin{pages}\format[RemoveLatexCommands,FormatPagesForHTML]{\pages}
.\end{pages}<br>

but only the number comes out. the rest is blank…