[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] Autocompletion list in the commit dialog

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-02-16 19:26:16 CET

Douglas Stonham wrote:
> I've been trying to do a basic regex for .vb files with mixed success:
>
> (?<=([Cc]lass|[Ff]unction|[Ss]ub)[ \t]*)\b\w+(?=[ \t]*[\(\'\r\n])
>
> ... doesn't work. \r and \n only seem to match the characters r and n
> respectively.

Try
(?<=([Cc]lass|[Ff]unction|[Ss]ub)[ \t]*)\b\w+(?=[ \t]*[\(\'\r\n(\r\n)])
maybe that works (I'm not very good in regex either ;)

> I can't test directly with TSVN but the above picks out all functions/subs
> followed by an open bracket. It just misses class names since they are
> followed by a line ending (and returns oddities if the chars r and n
> appear in the right places.

You can use the test tool I mentioned earlier - that one uses the same
algorithm as TSVN does.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Feb 16 19:30:03 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.