Lübbe Onken wrote:
>Hi Toby,
>
>
>
>>I doubt you want to actually return the words "class",
>>"procedure", etc.
>>To prevent a pair of parentheses from actually returning that
>>value, use
>>the (?:) notation. Also, I believe you wanted to make "class"
>>optional?
>>
>>
>No, I only wanted to have the classes, not const, record and other stuff
>that is on the left hand side of a '='.
>
>
>
>>(NOCASE) .pas =
>>(\w+)\s+=\s+(?:class)?|(?:procedure|function|property)\s+(\w+)
>>
>>
>
>Now everything in front of a '=' sign gets returned, not just class names. I
>still have to decide whether I like this. May be nice for other type and
>const declarations.
>There are lots of empty lines returned as well. Any idea why?
>
>
I guess I'm not fluent enough in my Pascal! Didn't your original regex
return the word "class" repeatedly?
I'm not sure why the blank lines are getting returned now; maybe a
change to the test program.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Feb 17 17:05:47 2005