[OS X TeX] Find and replace with regular expressions

Peter Dyballa Peter_Dyballa at Web.DE
Mon Nov 19 19:17:27 CET 2007


Am 19.11.2007 um 17:24 schrieb Matthew Leingang:

> Is there any regex that's going to work 100% of the time?

It's not possible to find a regular expression that works in all  
cases. It's in the way regular expressions work that they have to  
fail in some circumstances, for example when a target is nested  
inside a nested target.

Another way to handle $...$ and \$price is to substitute temporarily \ 
$ with something that does not exist yet in the text. This can be  
something simple like • or some unique string, for example a Welsh  
town's Gaelic name ... And it's always a good idea to save the file  
before applying changes. Then it's possible to go back to the  
unchanged version. Or trying them on a copy.

--
Greetings

   Pete

"Let's face it; we don't want a free market economy either."
         James Farley, president, Coca-Cola Export Corp., 1959





More information about the macostex-archives mailing list