[OS X TeX] Regex to catch more than one line

Frank STENGEL fstengel at mac.com
Sat Nov 20 16:13:28 CET 2010


Hello,

I am trying (and failing) to write a regular expression that catches text (split on more than one line or not) that is between $$'s in order to replace these $$'s by \begin{equation*}...\end{equation*}

I tried 

\$\$(.*)\$\$

as the expression to be found. Alas this does not work if the displayed math is coded using more than one line.

What do I need to replace the . with? I gather I have to add symbols to catch the beginning and end of lines. How do I do that?


-- 
Frank STENGEL (fstengel<at>mac.com)




More information about the macostex-archives mailing list