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

Frank STENGEL fstengel at mac.com
Sat Nov 20 10:13:28 EST 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 MacOSX-TeX mailing list