[TxMt] Re: Select and Replace: magic needed....

Nicholas Cole nicholas.cole at gmail.com
Mon Jun 15 22:44:36 UTC 2009


On Mon, Jun 15, 2009 at 8:40 PM, Steve King<sking at arbor.net> wrote:
> Alex Ross wrote:
>> You need smarter regex's :)
>>
>> How about:
>>
>> `(.*?)'(?!s)
>>
>> So it starts by matching `, and matches until it finds a single ' that
>> is not followed by “s”.
>>
>
> It will still fail in too many cases, such as plural possessive.
>
>    Alice said, `I need to fill my two cats' water bowl.'
>
> Anyway, on to the macro.

Dear Steve,

Thanks! That is a very useful tutorial.

Best,

N



More information about the textmate mailing list