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.
Thanks!
Patrick
On 1 Jul 2010, at 21:27, Patrick Mast wrote:
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.)
C --- Caius Durling caius@caius.name +44 (0) 7960 268 100 http://caius.name/
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
On 2 Jul 2010, at 11:38, Patrick Mast wrote:
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.
Ah, then you need to specify it searching from the start of the line with ^
^\s+USE\s
C --- Caius Durling caius@caius.name +44 (0) 7960 268 100 http://caius.name/
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/