[TxMt] Re: How to search for ...

Justin C 100621.1 at masonsmusic.co.uk
Fri Jul 2 11:45:01 UTC 2010

On 2 Jul 2010, at 11:38, Patrick Mast wrote:

> Hello,
> > How can I search my files in textmate for:
> > <spaces...>USE<space>
> > Where <spaces...> is any number of spaces and <space> is just one  
> space.
> Use a regular expression, something like \s+USE\s would do it. Make  
> sure to tick the box saying "Regular Expression" in the find dialog  
> (or hit cmd-alt-r to toggle it.)
> Thanks!
> Now, this regular expression also finds:
> anything here    USE test
> while I only want the search to be true if there is noting in front  
> of USE, ONLY spaces.
> Patrick

I find this site helpful if I've a regex problem:

Justin C, by the sea.

Justin C, by the sea.

More information about the textmate mailing list