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
+44 (0) 7960 268 100