[OS X TeX] TeXShop vs Ogrekit
Herbert Schulz
herbs at wideopenwest.com
Sat Jan 8 17:04:52 CET 2011
On Jan 8, 2011, at 9:59 AM, Alain Schremmer wrote:
>
> On Jan 8, 2011, at 10:20 AM, Herbert Schulz wrote:
>
>> Since OgreKit uses regular expressions, e.g. \n = newlinw, it need some way to escape the \, i.e., to ``know'' that you really mean for it to look at the \ as a character. You do this by escaping the escape character, \\.
>
> Er ...
>
> Let us say I have \command in the Find part of Ogrekit
>
> If I click on \command, that selects only command and I think I understand your explanation as to why. What I don't understand is what do I do to select \command, short of clicking on one side of \command and sweeping across to the other side. In other words, I don't know what I should do to "escape the escape character" or, rather, to include it in the selection when I click. Is there a modifiying key?
>
> Hopeful regards
> --schremmer
Howdy,
Use \\command in the find part. The \ alone has a special meaning in regular expressions (i.e., it means the next character may have a special meaning---\n means newline) so you have to double it to get one backslash.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the macostex-archives
mailing list