[OS X TeX] Search with .* but how to replace?

Michael Welsh yomcat at yomcat.geek.nz
Thu Apr 24 20:41:35 EDT 2014


On 25/04/2014, at 1238, Herbert Schulz <herbs at wideopenwest.com> wrote:
> 
> I'm FAR from a regex guru but I suspect you'll need something like
> 
> Find: f\((.*)\)

This will break on lines such as
let f(x) be something and g(y) be something else.

It will match "x) be something and g(y". You need the ? to tell the search to stop after finding the next ), not the last one in the line.


More information about the MacOSX-TeX mailing list