[TxMt] Re: find whole word

Chris Rebert textmate at rebertia.com
Wed Mar 11 21:03:35 UTC 2009


On Wed, Mar 11, 2009 at 1:52 PM, Matt Bauman <mbauman.lists at gmail.com> wrote:
> On Wed, Mar 11, 2009 at 2:31 PM, Robert J. Carr <rjcarr at gmail.com> wrote:
>> I'm sure this can be accomplished with a regular expression but I'm
>> looking for an easy way to find a whole word.
>
> It sure can be accomplished with a regular expression.  And it's easy.
>
> Just surround your word with the 'word boundary' token: \b
>
>> For xample, if I have these types in a file:
>>
>> Listener
>> ClickListener
>
> Tick the regular expression box and search for '\bListener\b'

Does seem like this should be something fairly simple to build-in though...
Feature request!

Cheers,
Chris

-- 
I have a blog:
http://blog.rebertia.com



More information about the textmate mailing list