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: URL:http://www.regular-expressions.info/